HTML · Intermediate
Using it: picking the right tool and applying it correctly.
What does writing 'semantic HTML' mean, and why does it matter?
What is the key difference between block-level and inline elements in HTML?
What do a `<form>` element's `action` and `method` attributes control?
What does the `defer` attribute do when added to a `<script>` tag?
What is the difference between an element's `id` and `class` attributes?
Why is it generally considered bad practice to use a `<table>` element purely for visual page layout (rather than for genuinely tabular data)?
What is the difference between the `rel="nofollow"` and `rel="noopener"` attribute values on an `<a>` tag?
What does the `<label>` element's `for` attribute do, and why does it matter for accessibility?
What are HTML5 `data-*` custom attributes used for?
What is the purpose of the `srcset` attribute on an `<img>` tag?
What is the difference between the HTTP methods GET and POST when used as a form's `method` attribute?
What does the `download` attribute on an `<a>` tag do?
Why does using heading tags (`<h1>`-`<h6>`) purely to make text visually larger/bolder, rather than to represent genuine document structure, cause real accessibility problems?
What is 'progressive enhancement' as a web development philosophy, and how does it relate to writing HTML?
What is the purpose of the `<noscript>` element?
What is the key difference between the `<iframe>` element and simply embedding another page's content via a server-side include or AJAX fetch?
What is the purpose of pairing `<figure>` and `<figcaption>` elements?
What do the `<details>` and `<summary>` elements provide, without requiring any JavaScript?
What does the `pattern` attribute on a text `<input>` element do?
What effect does a `<base href="https://example.com/docs/">` element in a page's `<head>` have on the rest of the page?