HTML · Intermediate

Using it: picking the right tool and applying it correctly.

Intermediate·2.2.1

What does writing 'semantic HTML' mean, and why does it matter?

Intermediate·2.2.2

What is the key difference between block-level and inline elements in HTML?

Intermediate·2.2.3

What do a `<form>` element's `action` and `method` attributes control?

Intermediate·2.2.4

What does the `defer` attribute do when added to a `<script>` tag?

Intermediate·2.2.5

What is the difference between an element's `id` and `class` attributes?

Intermediate·2.2.6

Why is it generally considered bad practice to use a `<table>` element purely for visual page layout (rather than for genuinely tabular data)?

Intermediate·2.2.7

What is the difference between the `rel="nofollow"` and `rel="noopener"` attribute values on an `<a>` tag?

Intermediate·2.2.8

What does the `<label>` element's `for` attribute do, and why does it matter for accessibility?

Intermediate·2.2.9

What are HTML5 `data-*` custom attributes used for?

Intermediate·2.2.10

What is the purpose of the `srcset` attribute on an `<img>` tag?

Intermediate·2.2.11

What is the difference between the HTTP methods GET and POST when used as a form's `method` attribute?

Intermediate·2.2.12

What does the `download` attribute on an `<a>` tag do?

Intermediate·2.2.13

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?

Intermediate·2.2.14

What is 'progressive enhancement' as a web development philosophy, and how does it relate to writing HTML?

Intermediate·2.2.15

What is the purpose of the `<noscript>` element?

Intermediate·2.2.16

What is the key difference between the `<iframe>` element and simply embedding another page's content via a server-side include or AJAX fetch?

Intermediate·2.2.17

What is the purpose of pairing `<figure>` and `<figcaption>` elements?

Intermediate·2.2.18

What do the `<details>` and `<summary>` elements provide, without requiring any JavaScript?

Intermediate·2.2.19

What does the `pattern` attribute on a text `<input>` element do?

Intermediate·2.2.20

What effect does a `<base href="https://example.com/docs/">` element in a page's `<head>` have on the rest of the page?