<!DOCTYPE html> <html> <head> <title>Page</title> </head> <body> <!-- Contenu --> <h1>Titre</h1> <p>Paragraphe</p> </body> </html>
<tag something="value" other="value"> contenu </tag>
selector { color: red; background-color: #00FF00; text-align: center; width: 50%; height: 100px; margin: 10px 5px 10px 5px; padding: 16px; font-family: sans-serif; font-size: 16px }
p #my-id .my-class p img h1, h2, h3 a:hover
<tag id="my-id-name"> … </tag>
<tag class="my-class-name another-class"> … </tag> <tag class="another-class"> … </tag>
Représente le concept de "boîte" qui enveloppe tous les éléments HTML.
<div>…</div>
<span>…</span>
<h2> <span style="color: red">H</span> ... <span style="color: orange">o</span> </h2>
👉 Énoncé