HTML5 Cheat Sheet
A guide to semantic tags and attributes for high-performance code.
<a>
| Attribut | Usage |
|---|---|
href |
Destination URL |
target |
Cible d'ouverture (_blank, _self) |
rel |
Link relationship (e.g. nofollow) |
<a href="https://toolsmartly.com">Lien</a>
<img>
| Attribut | Usage |
|---|---|
src |
Image file path |
alt |
Alternative text for accessibility |
width |
Width in pixels |
height |
Height in pixels |
<img src="image.webp" alt="Description" width="600" height="400">
<section>
| Attribut | Usage |
|---|---|
id |
Identifiant unique |
class |
Classes CSS |
<section id="services">
<h2>Our Services</h2>
<p>Details here...</p>
</section>
<header>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<header>
<h1>Site title</h1>
</header>
<nav>
| Attribut | Usage |
|---|---|
class |
CSS classes for styling |
aria-label |
Description for accessibility |
<nav>
<ul>
<li><a href="#">Accueil</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<article>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
id |
Unique identifier for anchors |
<article>
<h2>Article title</h2>
<p>Main content here...</p>
</article>
<footer>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<footer>
<p>© 2026 ToolSmartly</p>
</footer>
<form>
| Attribut | Usage |
|---|---|
action |
URL to send the data to |
method |
HTTP method (GET or POST) |
<form action="/submit" method="POST">
</form>
<input>
| Attribut | Usage |
|---|---|
type |
text, email, password, checkbox, etc. |
name |
Field identifier name |
placeholder |
Placeholder text |
<input type="text" name="email" placeholder="Enter your email">
<button>
| Attribut | Usage |
|---|---|
type |
submit, reset or button |
disabled |
Disables the button |
<button type="submit">Envoyer</button>
<h1>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<h1>Titre principal</h1>
<h2>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<h2>Sous-titre</h2>
<p>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<p>This is a paragraph of content.</p>
<ul>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ol>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<ol>
<li>Step 1</li>
<li>Step 2</li>
</ol>
<video>
| Attribut | Usage |
|---|---|
src |
Video URL |
controls |
Shows the player controls (play, pause) |
width |
Player width |
<video controls width="640">
<source src="video.mp4" type="video/mp4">
Your browser does not support video.
</video>
<audio>
| Attribut | Usage |
|---|---|
src |
Audio file URL |
controls |
Shows the player controls |
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support audio.
</audio>
<div>
| Attribut | Usage |
|---|---|
class |
CSS classes for styling |
id |
Identifiant unique |
<div class="wrapper">
</div>
<main>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<main>
<h1>Main title</h1>
<p>Unique page content.</p>
</main>
<aside>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<aside>
<h3>About</h3>
<p>Complementary content.</p>
</aside>
<table>
| Attribut | Usage |
|---|---|
class |
Classes CSS |
<table>
<thead>
<tr>
<th>Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data</td>
</tr>
</tbody>
</table>
<tr>
| Attribut | Usage |
|---|
<tr><td>Cellule</td></tr>
<th>
| Attribut | Usage |
|---|---|
scope |
Specifies whether the header applies to a row or a column |
<th scope="col">Titre colonne</th>
<td>
| Attribut | Usage |
|---|
<td>Cell content</td>