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

ODP
Introduction of Html/css/js
PDF
Introduzione JQuery
PDF
Javascript
PDF
Web Development Course: PHP lecture 2
PPTX
Html, CSS, Javascript, Jquery, Meteor應用
PPTX
FYBSC IT Web Programming Unit III Document Object
PPT
C5 Javascript
PDF
Introduction to HTML, CSS, and Javascript
Introduction of Html/css/js
Introduzione JQuery
Javascript
Web Development Course: PHP lecture 2
Html, CSS, Javascript, Jquery, Meteor應用
FYBSC IT Web Programming Unit III Document Object
C5 Javascript
Introduction to HTML, CSS, and Javascript

What's hot (19)

PPTX
FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
PPTX
CSC103 Web Technologies: HTML, CSS, JS
PPT
J Query Public
PPTX
jQuery from the very beginning
PDF
Html tags describe in bangla
PPT
Jquery presentation
PDF
Html Help Sheet 02
 
KEY
Html5, a gentle introduction
DOCX
Caracteristicas Basicas De Htlm
PPSX
DIWE - Coding HTML for Basic Web Designing
DOCX
Html 5 tags
KEY
Html 5, a gentle introduction
PPTX
jQuery PPT
PPT
A Short Introduction To jQuery
PPTX
Html5 and web technology update
PDF
ODP
Drupal Best Practices
PDF
Zen codingcheatsheet
PPTX
Jquery introduction
FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
CSC103 Web Technologies: HTML, CSS, JS
J Query Public
jQuery from the very beginning
Html tags describe in bangla
Jquery presentation
Html Help Sheet 02
 
Html5, a gentle introduction
Caracteristicas Basicas De Htlm
DIWE - Coding HTML for Basic Web Designing
Html 5 tags
Html 5, a gentle introduction
jQuery PPT
A Short Introduction To jQuery
Html5 and web technology update
Drupal Best Practices
Zen codingcheatsheet
Jquery introduction
Ad

Viewers also liked (20)

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

Similar to Html5 appunti.0 (20)

PDF
Intro to HTML 5 / CSS 3
KEY
2022 HTML5: The future is now
PDF
Accessibility - A feature you can build
PPT
Html5 drupal7 with mandakini kumari(1)
PPTX
Basics of Front End Web Dev PowerPoint
PPTX
Journey To The Front End World - Part1 - The Skeleton
PDF
HTML5, just another presentation :)
PPTX
Accessibilita con stile - CSS per il web moderno e accessibile
ODP
Light introduction to HTML
PPTX
Html workshop 1
PDF
WEB DESIGN AND INTERNET PROGRAMMING LAB MANUAL.pdf
PDF
HTML5 - An introduction
PPTX
Front End Development - HTML AND BASICS.pptx
PDF
Html5 training
KEY
An Introduction to HTML5
ODP
HTML5 e CSS3 (slides della sessione tenuta al DIMI di Udine)
PDF
Introduction to html5
PPTX
HTML5 introduction
PDF
If you know nothing about HTML, this is where you can start !!
Intro to HTML 5 / CSS 3
2022 HTML5: The future is now
Accessibility - A feature you can build
Html5 drupal7 with mandakini kumari(1)
Basics of Front End Web Dev PowerPoint
Journey To The Front End World - Part1 - The Skeleton
HTML5, just another presentation :)
Accessibilita con stile - CSS per il web moderno e accessibile
Light introduction to HTML
Html workshop 1
WEB DESIGN AND INTERNET PROGRAMMING LAB MANUAL.pdf
HTML5 - An introduction
Front End Development - HTML AND BASICS.pptx
Html5 training
An Introduction to HTML5
HTML5 e CSS3 (slides della sessione tenuta al DIMI di Udine)
Introduction to html5
HTML5 introduction
If you know nothing about HTML, this is where you can start !!

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Lesson notes of climatology university.
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Module 4: Burden of Disease Tutorial Slides S2 2025
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPH.pptx obstetrics and gynecology in nursing
Lesson notes of climatology university.
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
Insiders guide to clinical Medicine.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Renaissance Architecture: A Journey from Faith to Humanism
Microbial disease of the cardiovascular and lymphatic systems
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
01-Introduction-to-Information-Management.pdf
TR - Agricultural Crops Production NC III.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf

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