<h1> to <h6>
Headings, from the most important (h1) to the least (h6). Use one h1 per page.
<h1>Recipes</h1>
<h2>Breakfast</h2>
<h3>Pancakes</h3>Short entries with an example for each. When you need every detail, each entry links to the official documentation.
Headings, from the most important (h1) to the least (h6). Use one h1 per page.
<h1>Recipes</h1>
<h2>Breakfast</h2>
<h3>Pancakes</h3>A paragraph of text.
<p>Fresh bread every morning.</p>strong marks important words (bold); em adds spoken emphasis (italic).
<p>This is <strong>important</strong>, <em>really</em>.</p>A link. href says where it goes.
<a href="https://example.org">Visit</a>An image. Always add alt text that describes it.
<img src="cat.jpg" alt="A cat asleep on a chair">Bulleted and numbered lists. Each item is an li.
<ul>
<li>Milk</li>
<li>Eggs</li>
</ul>A table of data: rows (tr) made of header (th) and data (td) cells.
<table>
<tr><th>Day</th><th>Class</th></tr>
<tr><td>Mon</td><td>Maths</td></tr>
</table>Plain containers: div for blocks, span for words inside a line.
<div class="card">Tea <span class="price">$3</span></div>An input box and the label that names it. Match for and id.
<label for="name">Name</label>
<input id="name">A dropdown list of choices.
<select>
<option>Small</option>
<option>Large</option>
</select>A clickable button. Inside a form it submits the form.
<button>Save</button>Page regions that say what each part is for, which helps screen readers and search engines.
<header><h1>Shop</h1></header>
<nav><a href="#">Home</a></nav>
<main><p>Welcome!</p></main>
<footer><p>Open daily</p></footer>Page information in the head: the tab title, a search description and the phone viewport.
<head>
<title>Sunny Bakes</title>
<meta name="description" content="Fresh bread daily.">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>No entries match. Try a shorter word.