SlideShare a Scribd company logo
ugo.rinaldi@gmail.com
HTML e oltre
HTML avanzato e HTML5 (per cominciare)
Argomenti

Nuovi elementi semantici

Nuovi elementi per il form

Tip & Tricks
2
Struttura del documento
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="utf-8">
<title> Titolo nel browser </title>
...
</head>
<body>
...
</body>
</html>
3
4
Header
•
Rappresenta un contenitore
•
I suoi elementi tipici sono:
• <h1> - <h6>
• logo o icone
• authorship information
•
Si possono avere più <header> in un documento
•
Non può essere posto dentro <footer>,
<address> or another <header>
5
Esempio
<article>
<header>
<h1>Most important heading here</h1>
<h3>Less important heading here</h3>
<p>Some additional information here</p>
</header>
<p>Lorem Ipsum dolor set amet....</p>
</article>
6
Nav
Barra di navigazione. Definisce un insieme di link
di navigazione
Non tutti il link devo esser posti dentro un <nav>
Esempio:
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
7
Aside
•
Contenuti laterali. Potrebbe esser posto come una barra laterale
in un article.
•
Molti browser visualizzano <aside> ed i tag successivi con il
seguente valore di default: aside {display: block; }
•
Esempio:
<p>My family and I visited The Epcot center this summer.</p>
<aside>
<h4>Epcot Center</h4>
<p>The Epcot Center is a theme park in Disney World,
Florida.</p>
</aside>
8
Article
•
The <article> tag specifies independent, self-
contained content.
•
An article should make sense on its own and it
should be possible to distribute it independently
from the rest of the site.
•
Potential sources for the <article> element:
• Forum post
• Blog post
• News story (notizia)
• Comment
9
Esempio
<article>
<h1>Google Chrome</h1>
<p>Google Chrome is a free, open-source web
browser developed by Google, released in
2008.
...but duckduckgo don't trace you
</p>
</article>
10
Section
•
Definisce sezioni all'interno di un documento
come capitoli, headers, footers, o qualunque
altra sezione del documento.
•
Esempio:
• <section>
• <h1>WWF</h1>
• <p>The World Wide Fund for Nature (WWF) is....</p>
• </section>
11
Footer
•
Rappresenta un contenitore
•
I suoi elementi tipici sono:
•
contact information (address, email)
•
logo and/or icon
•
authorship information
•
copyright information
•
sitemap
•
back to top links
•
related documents
•
Si possono avere più <footer> in un documento
12
Modello senza CSS
Modello con CSS
Esempi con elementi semantici
13
•
<style>
•
body {font-family: Verdana, sans-serif;
font-size:0.8em;}
•
header, nav, section, article, footer
{border:1px solid grey; margin:5px;
padding:8px;}
•
nav ul {margin:0; padding:0;}
•
nav ul li {display:inline; margin:5px;}
•
</style>
Il CSS degli esempi
14
Il form

The <form> tag is used to create an HTML form
for user input.
<form action="demo_form.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
15
I pulsanti
<button type="button" onclick="alert('Hello world!')">
CONFERMA
</button>
<input type="button" onclick="alert('Hello World!')"
value="Conferma">
<input type="submit" value="CONFERMA">
16
Nuovi e vecchi type per l'input

Checkbox, radio, submit, reset, text, password, hidden (Già visti)

button Defines a clickable button (mostly used with a JavaScript to activate a script)

color Defines a color picker

date Defines a date control (year, month and day (no time))

datetime-local Defines a date and time control (year, month, day, hour, minute,
second, and fraction of a second (no time zone)

email Defines a field for an e-mail address

file Defines a file-select field and a "Browse..." button (for file uploads)

image Defines an image as the submit button

month Defines a month and year control (no time zone)

number Defines a field for entering a number

range Defines a control for entering a number whose exact value is not important
(like a slider control)

search Defines a text field for entering a search string

tel Defines a field for entering a telephone number (SAFARI)

time Defines a control for entering a time (no time zone)

url Defines a field for entering a URL

week Defines a week and year control (no time zone)
17
Esempio
Un form con i più utili type di input
18
News & Curious (Curiosities)

autocomplete="on/off"

placeholder="article, section,…"

required

maxlength="20"

src=”image.png” (solo per il type=image)

min="1" max="10" step="1"
19
Esempio di datalist
<input type=”text” list="browsers">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Google Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
20
Un accenno alle regular expression
<input type="text" name="nickname"
...
pattern="[a-z]{1}[a-z_]{2,19}"
...>
21
22
Tip & tricks
23
<figure>
<img src="SemanticElements.png"
alt="Sem.Elements" border="1">
<figcaption>
Fig.1 - Didascalia con il tag FIGCAPTION
</figcaption>
</figure>
<details>
<summary>DETAILS+SUMMARY tag
</summary>
<p>The details tag is currently supported
in Firefox, Opera, Chrome, and in Safari 6
</p>
</details>
24
Details
<p>Per evidenziare usa il tag
<mark>
questo testo verrà evidenziato
</mark>
</p>
25
Mark
<body>
<canvas id="myCanvas" width="300" height="100"
style="border:1px solid #c3c3c3;">
Se leggi questo, il tuo browser non supporta il tag HTML5
canvas.
</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,150,75);
</script>
</body>
26
Canvas
• http://www.w3schools.com/html/default.asp
• http://www.w3schools.com/html/html5_intro
.asp
• http://www.html.it
Sitografia

More Related Content

What's hot

FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
FYBSC IT Web Programming Unit II  Html 5 Tables, Forms and MediaFYBSC IT Web Programming Unit II  Html 5 Tables, Forms and Media
FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
Arti Parab Academics
 
CSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JSCSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JS
Richard Homa
 
J Query Public
J Query PublicJ Query Public
J Query Public
pradeepsilamkoti
 
jQuery from the very beginning
jQuery from the very beginningjQuery from the very beginning
jQuery from the very beginning
Anis Ahmad
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentationguest5d87aa6
 
Html Help Sheet 02
Html Help Sheet 02Html Help Sheet 02
Html Help Sheet 02
zsk
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
Diego Scataglini
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmMaria S Rivera
 
DIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web DesigningDIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web Designing
Rasan Samarasinghe
 
Html 5 tags
Html  5 tagsHtml  5 tags
Html 5 tags
Eagle Eyes
 
Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
Diego Scataglini
 
jQuery PPT
jQuery PPTjQuery PPT
jQuery PPT
Dominic Arrojado
 
A Short Introduction To jQuery
A Short Introduction To jQueryA Short Introduction To jQuery
A Short Introduction To jQuery
Sudar Muthu
 
Html5 and web technology update
Html5 and web technology updateHtml5 and web technology update
Html5 and web technology update
Doug Domeny
 
Html tag list
Html tag listHtml tag list
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practices
manugoel2003
 
Zen codingcheatsheet
Zen codingcheatsheetZen codingcheatsheet
Zen codingcheatsheetgoldenveizer
 
Jquery introduction
Jquery introductionJquery introduction
Jquery introduction
musrath mohammad
 

What's hot (19)

FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
FYBSC IT Web Programming Unit II  Html 5 Tables, Forms and MediaFYBSC IT Web Programming Unit II  Html 5 Tables, Forms and Media
FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
 
CSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JSCSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JS
 
J Query Public
J Query PublicJ Query Public
J Query Public
 
jQuery from the very beginning
jQuery from the very beginningjQuery from the very beginning
jQuery from the very beginning
 
Html tags describe in bangla
Html tags describe in banglaHtml tags describe in bangla
Html tags describe in bangla
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
Html Help Sheet 02
Html Help Sheet 02Html Help Sheet 02
Html Help Sheet 02
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
DIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web DesigningDIWE - Coding HTML for Basic Web Designing
DIWE - Coding HTML for Basic Web Designing
 
Html 5 tags
Html  5 tagsHtml  5 tags
Html 5 tags
 
Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
 
jQuery PPT
jQuery PPTjQuery PPT
jQuery PPT
 
A Short Introduction To jQuery
A Short Introduction To jQueryA Short Introduction To jQuery
A Short Introduction To jQuery
 
Html5 and web technology update
Html5 and web technology updateHtml5 and web technology update
Html5 and web technology update
 
Html tag list
Html tag listHtml tag list
Html tag list
 
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practices
 
Zen codingcheatsheet
Zen codingcheatsheetZen codingcheatsheet
Zen codingcheatsheet
 
Jquery introduction
Jquery introductionJquery introduction
Jquery introduction
 

Viewers also liked

Guida introduttiva al css
Guida introduttiva al cssGuida introduttiva al css
Guida introduttiva al css
Enrico Mainero
 
Html e CSS ipertesti e siti web 4.5
Html e CSS   ipertesti e siti web 4.5Html e CSS   ipertesti e siti web 4.5
Html e CSS ipertesti e siti web 4.5
orestJump
 
Introduzione ai Sistemi Operativi
Introduzione ai Sistemi OperativiIntroduzione ai Sistemi Operativi
Introduzione ai Sistemi Operativi
orestJump
 
Php mysql3
Php mysql3Php mysql3
Php mysql3
orestJump
 
Struttura di una pagina html
Struttura di una pagina htmlStruttura di una pagina html
Struttura di una pagina html
Enrico Mainero
 
Tecnologie informatiche
Tecnologie informaticheTecnologie informatiche
Tecnologie informatiche
orestJump
 
HTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesignerHTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesigner
Matteo Magni
 
Html5 e css3 nuovi strumenti per un nuovo web
Html5 e css3 nuovi strumenti per un nuovo webHtml5 e css3 nuovi strumenti per un nuovo web
Html5 e css3 nuovi strumenti per un nuovo web
Massimo Bonanni
 
Html e Css - 3 | WebMaster & WebDesigner
Html e Css - 3 | WebMaster & WebDesignerHtml e Css - 3 | WebMaster & WebDesigner
Html e Css - 3 | WebMaster & WebDesigner
Matteo Magni
 
Python - Primi passi
Python - Primi passi Python - Primi passi
Python - Primi passi
orestJump
 
Html5 - Un anno dopo
Html5 - Un anno dopoHtml5 - Un anno dopo
Html5 - Un anno dopo
Cristiano Rastelli
 
Guida introduttiva al codice HTML
Guida introduttiva al codice HTMLGuida introduttiva al codice HTML
Guida introduttiva al codice HTML
Enrico Mainero
 
Html
HtmlHtml
Php mysql e cms
Php mysql e cmsPhp mysql e cms
Php mysql e cmsorestJump
 
Esercizio di excel
Esercizio di excelEsercizio di excel
Esercizio di excel
remo luzi
 
Lezione 11 - Vba E Excel
Lezione 11 - Vba E ExcelLezione 11 - Vba E Excel
Lezione 11 - Vba E ExcelRice Cipriani
 
Office & VBA - Giorno 1
Office & VBA - Giorno 1Office & VBA - Giorno 1
Office & VBA - Giorno 1
Diego La Monica
 
(E book ita) java introduzione alla programmazione orientata ad oggetti in ...
(E book ita) java   introduzione alla programmazione orientata ad oggetti in ...(E book ita) java   introduzione alla programmazione orientata ad oggetti in ...
(E book ita) java introduzione alla programmazione orientata ad oggetti in ...Raffaella D'angelo
 
Autocad lezione 1
Autocad lezione 1Autocad lezione 1
Autocad lezione 1
Carella2014
 
Sviluppo Di Un Sito Web
Sviluppo Di Un Sito WebSviluppo Di Un Sito Web
Sviluppo Di Un Sito Web
carlol
 

Viewers also liked (20)

Guida introduttiva al css
Guida introduttiva al cssGuida introduttiva al css
Guida introduttiva al css
 
Html e CSS ipertesti e siti web 4.5
Html e CSS   ipertesti e siti web 4.5Html e CSS   ipertesti e siti web 4.5
Html e CSS ipertesti e siti web 4.5
 
Introduzione ai Sistemi Operativi
Introduzione ai Sistemi OperativiIntroduzione ai Sistemi Operativi
Introduzione ai Sistemi Operativi
 
Php mysql3
Php mysql3Php mysql3
Php mysql3
 
Struttura di una pagina html
Struttura di una pagina htmlStruttura di una pagina html
Struttura di una pagina html
 
Tecnologie informatiche
Tecnologie informaticheTecnologie informatiche
Tecnologie informatiche
 
HTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesignerHTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesigner
 
Html5 e css3 nuovi strumenti per un nuovo web
Html5 e css3 nuovi strumenti per un nuovo webHtml5 e css3 nuovi strumenti per un nuovo web
Html5 e css3 nuovi strumenti per un nuovo web
 
Html e Css - 3 | WebMaster & WebDesigner
Html e Css - 3 | WebMaster & WebDesignerHtml e Css - 3 | WebMaster & WebDesigner
Html e Css - 3 | WebMaster & WebDesigner
 
Python - Primi passi
Python - Primi passi Python - Primi passi
Python - Primi passi
 
Html5 - Un anno dopo
Html5 - Un anno dopoHtml5 - Un anno dopo
Html5 - Un anno dopo
 
Guida introduttiva al codice HTML
Guida introduttiva al codice HTMLGuida introduttiva al codice HTML
Guida introduttiva al codice HTML
 
Html
HtmlHtml
Html
 
Php mysql e cms
Php mysql e cmsPhp mysql e cms
Php mysql e cms
 
Esercizio di excel
Esercizio di excelEsercizio di excel
Esercizio di excel
 
Lezione 11 - Vba E Excel
Lezione 11 - Vba E ExcelLezione 11 - Vba E Excel
Lezione 11 - Vba E Excel
 
Office & VBA - Giorno 1
Office & VBA - Giorno 1Office & VBA - Giorno 1
Office & VBA - Giorno 1
 
(E book ita) java introduzione alla programmazione orientata ad oggetti in ...
(E book ita) java   introduzione alla programmazione orientata ad oggetti in ...(E book ita) java   introduzione alla programmazione orientata ad oggetti in ...
(E book ita) java introduzione alla programmazione orientata ad oggetti in ...
 
Autocad lezione 1
Autocad lezione 1Autocad lezione 1
Autocad lezione 1
 
Sviluppo Di Un Sito Web
Sviluppo Di Un Sito WebSviluppo Di Un Sito Web
Sviluppo Di Un Sito Web
 

Similar to Html5 appunti.0

Html5 ppt
Html5 pptHtml5 ppt
Html5 ppt
Rahul Gupta
 
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
Shrijan Tiwari
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
HARUN PEHLIVAN
 
Intro to html 5
Intro to html 5Intro to html 5
Intro to html 5
Ian Jasper Mangampo
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
Altaf Pinjari
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
Basmaa Mostafa
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5Vlad Posea
 
Elements
ElementsElements
Elements
Carlos Pari
 
Html
HtmlHtml
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
Reema
 
Html
HtmlHtml
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
Webtech Learning
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorialmadhavforu
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
Gonzalo Cordero
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
Tadpole Collective
 
Html5
Html5Html5
Html5
gjoabraham
 
Html5
Html5Html5
Html5
gjoabraham
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quidePL dream
 

Similar to Html5 appunti.0 (20)

Html5 ppt
Html5 pptHtml5 ppt
Html5 ppt
 
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
 
Intro to html 5
Intro to html 5Intro to html 5
Intro to html 5
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
Elements
ElementsElements
Elements
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
 
Html
HtmlHtml
Html
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 

Recently uploaded (20)

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 

Html5 appunti.0

  • 1. ugo.rinaldi@gmail.com HTML e oltre HTML avanzato e HTML5 (per cominciare)
  • 2. Argomenti  Nuovi elementi semantici  Nuovi elementi per il form  Tip & Tricks 2
  • 3. Struttura del documento <!DOCTYPE html> <html lang="it"> <head> <meta charset="utf-8"> <title> Titolo nel browser </title> ... </head> <body> ... </body> </html> 3
  • 4. 4
  • 5. Header • Rappresenta un contenitore • I suoi elementi tipici sono: • <h1> - <h6> • logo o icone • authorship information • Si possono avere più <header> in un documento • Non può essere posto dentro <footer>, <address> or another <header> 5
  • 6. Esempio <article> <header> <h1>Most important heading here</h1> <h3>Less important heading here</h3> <p>Some additional information here</p> </header> <p>Lorem Ipsum dolor set amet....</p> </article> 6
  • 7. Nav Barra di navigazione. Definisce un insieme di link di navigazione Non tutti il link devo esser posti dentro un <nav> Esempio: <nav> <a href="/html/">HTML</a> | <a href="/css/">CSS</a> | <a href="/js/">JavaScript</a> | <a href="/jquery/">jQuery</a> </nav> 7
  • 8. Aside • Contenuti laterali. Potrebbe esser posto come una barra laterale in un article. • Molti browser visualizzano <aside> ed i tag successivi con il seguente valore di default: aside {display: block; } • Esempio: <p>My family and I visited The Epcot center this summer.</p> <aside> <h4>Epcot Center</h4> <p>The Epcot Center is a theme park in Disney World, Florida.</p> </aside> 8
  • 9. Article • The <article> tag specifies independent, self- contained content. • An article should make sense on its own and it should be possible to distribute it independently from the rest of the site. • Potential sources for the <article> element: • Forum post • Blog post • News story (notizia) • Comment 9
  • 10. Esempio <article> <h1>Google Chrome</h1> <p>Google Chrome is a free, open-source web browser developed by Google, released in 2008. ...but duckduckgo don't trace you </p> </article> 10
  • 11. Section • Definisce sezioni all'interno di un documento come capitoli, headers, footers, o qualunque altra sezione del documento. • Esempio: • <section> • <h1>WWF</h1> • <p>The World Wide Fund for Nature (WWF) is....</p> • </section> 11
  • 12. Footer • Rappresenta un contenitore • I suoi elementi tipici sono: • contact information (address, email) • logo and/or icon • authorship information • copyright information • sitemap • back to top links • related documents • Si possono avere più <footer> in un documento 12
  • 13. Modello senza CSS Modello con CSS Esempi con elementi semantici 13
  • 14. • <style> • body {font-family: Verdana, sans-serif; font-size:0.8em;} • header, nav, section, article, footer {border:1px solid grey; margin:5px; padding:8px;} • nav ul {margin:0; padding:0;} • nav ul li {display:inline; margin:5px;} • </style> Il CSS degli esempi 14
  • 15. Il form  The <form> tag is used to create an HTML form for user input. <form action="demo_form.php" method="get"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="Submit"> </form> 15
  • 16. I pulsanti <button type="button" onclick="alert('Hello world!')"> CONFERMA </button> <input type="button" onclick="alert('Hello World!')" value="Conferma"> <input type="submit" value="CONFERMA"> 16
  • 17. Nuovi e vecchi type per l'input  Checkbox, radio, submit, reset, text, password, hidden (Già visti)  button Defines a clickable button (mostly used with a JavaScript to activate a script)  color Defines a color picker  date Defines a date control (year, month and day (no time))  datetime-local Defines a date and time control (year, month, day, hour, minute, second, and fraction of a second (no time zone)  email Defines a field for an e-mail address  file Defines a file-select field and a "Browse..." button (for file uploads)  image Defines an image as the submit button  month Defines a month and year control (no time zone)  number Defines a field for entering a number  range Defines a control for entering a number whose exact value is not important (like a slider control)  search Defines a text field for entering a search string  tel Defines a field for entering a telephone number (SAFARI)  time Defines a control for entering a time (no time zone)  url Defines a field for entering a URL  week Defines a week and year control (no time zone) 17
  • 18. Esempio Un form con i più utili type di input 18
  • 19. News & Curious (Curiosities)  autocomplete="on/off"  placeholder="article, section,…"  required  maxlength="20"  src=”image.png” (solo per il type=image)  min="1" max="10" step="1" 19
  • 20. Esempio di datalist <input type=”text” list="browsers"> <datalist id="browsers"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Google Chrome"> <option value="Opera"> <option value="Safari"> </datalist> 20
  • 21. Un accenno alle regular expression <input type="text" name="nickname" ... pattern="[a-z]{1}[a-z_]{2,19}" ...> 21
  • 23. 23 <figure> <img src="SemanticElements.png" alt="Sem.Elements" border="1"> <figcaption> Fig.1 - Didascalia con il tag FIGCAPTION </figcaption> </figure>
  • 24. <details> <summary>DETAILS+SUMMARY tag </summary> <p>The details tag is currently supported in Firefox, Opera, Chrome, and in Safari 6 </p> </details> 24 Details
  • 25. <p>Per evidenziare usa il tag <mark> questo testo verrà evidenziato </mark> </p> 25 Mark
  • 26. <body> <canvas id="myCanvas" width="300" height="100" style="border:1px solid #c3c3c3;"> Se leggi questo, il tuo browser non supporta il tag HTML5 canvas. </canvas> <script> var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.fillStyle = "#FF0000"; ctx.fillRect(0,0,150,75); </script> </body> 26 Canvas