Live slides
Metadati
Contenuto
Formato
div1
div2
div3
Lista ordinata
<ol>
Lista non ordinata
<ul>
<ol>
<li>elemento</li>
<li>elemento</li>
<li>elemento</li>
</ol><ul>
<li>primo elemento</li>
<li>secondo elemento</li>
<li>terzo elemento</li>
</ul>Lista ordinata
<ol>
Lista non ordinata
<ul>
<a href="#anchor">
link to anchor</a>
<a href="relative.html">
relative link</a>
<a href="../relative.html">
relative link to parent dir</a>
<a href="/absolute.html">
absolute link</a>
<a href="http://anothersite.com/page.html">
link to another host</a><!doctype html>
<html>
<head>
...
</head>
<body>
<p style="background-color: red;">Hello world!</p>
</body>
</html>
<!doctype html>
<html>
<head>
...
<style>
p {
background-color: blue;
}
</style>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
<!doctype html>
<html>
<head>
...
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<!-- css/main.css
p { background-color: black;} -->
</head>
<body>
<p>Hello world!</p>
</body>
</html>
<!doctype html>
<html>
<head>
...
</head>
<body>
...
<button onclick="console.log('pulsante premuto!');">
</button>
</body>
</html><!doctype html>
<html>
<head>
...
</head>
<body>
...
<script>
console.log('console.log from JS embedded!');
</script>
</body>
</html><!doctype html>
<html>
<head>
...
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
...
<script src="https://code.jquery.com/jquery-1.12.2.min.js"></script>
<script>window.jQuery ||
document.write(
'<script src="js/vendor/jquery-1.12.2.min.js"><\/script>')
</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html><!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Titolo</title>
<meta name="description" content="Descrizione">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a>
to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>
<script src="https://code.jquery.com/jquery-1.12.2.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>
<!DOCTYPE html>
<section>
<h1>WWF</h1>
<p>The World Wide Fund for Nature (WWF) is....</p>
</section>L'elemento <article> definisce un blocco di contenuto "isolato"
Un articolo solitamente non ha bisogno di altri elementi per essere significativo
<article>
<h1>What Does WWF Do?</h1>
<p>WWF's mission is to stop
the degradation of our
planet's natural environment,
and build a future in which humans
live in harmony with nature.</p>
</article><article>
<header>
<h1>What Does WWF Do?</h1>
<p>WWF's mission:</p>
</header>
<p>WWF's mission is to stop
the degradation of our
planet's natural environment,
and build a future in which humans
live in harmony with nature.</p>
</article>L'elemento footer definisce la parte finale di un documento
L'elemento footer definisce la parte finale di una sezione o articolo
Deve contenere dati relativi al blocco che chiude
Tipicamente un footer contiene l'autore, copyright, termini d'utilizzo
<footer>
<p>Posted by: Hege Refsnes</p>
<p>Contact information:
<a href="mailto:someone@example.com">
someone@example.com</a>
</p>
</footer>L'elemento nav definisce un blocco di links per la navigazione
Pensato per grandi quantità di links
Non tutti i links di un documento devono essere in un nav!
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>L'elemento figcaption definisce una descrizione testuale di una immagine
Si può utilizzare l'elemento figure per racchiudere immagine e didascalia.
<figure>
<img src="pic_mountain.jpg" alt="The Pulpit Rock"
width="304" height="228">
<figcaption>Fig1. -
The Pulpit Rock, Norway.</figcaption>
</figure><audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio><video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>L'elemento canvas definisce un'area rettangolare nel documento
Permette di disegnare al suo interno tramite JavaScript
Può disegnare linee, rettangoli, cerchi, testo ed immagini
<canvas id="myCanvas" width="200"
height="100" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.
</canvas>var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.beginPath();
ctx.arc(95,50,40,0,2*Math.PI);
ctx.stroke();