Practice
Sample worksheet
Not graded
One question of every kind.
Every question here is checked in the browser, and nothing is sent anywhere.
Nothing here is recorded or submitted. Your answers are saved in this browser only and go nowhere else. Checking an answer shows you the reasoning and the source it came from.
Terms to know
Select a term for its definition, and a link to the source it comes from.
Results
Section 1: Choice and match
1.1 Which element holds the page's main content?
Where this comes from
`main` is the landmark for the content that is unique to the page.
1.2 Match each element to what it is.
Where this comes from
- A A list of links
- B The page's footer
- Answer: A
- Answer: B
Each element names one kind of content.
Section 2: Fill, grid and tree
2.1 Complete the markup.
Where this comes from
<ul>
<li>One</li>
</ul>
Word bank ul li
- Answer: ul
- Answer: li
A list's only valid child is `li`.
2.2 Which column does each element belong in?
Where this comes from
| Element | Block | Inline |
|---|---|---|
| `p` Answer: Block | ||
| `span` Answer: Inline |
Block elements start a new line.
2.3 Fill in the tree for this markup.
Where this comes from
<ul><li>One</li></ul>
- ul
- Answer: li
A tree shows each element inside its parent.
Section 3: Judge and self-check
- A Valid and correct
- B Invalid
3.1 Is this markup valid and correct?
Where this comes from
A list may only hold `li` elements.
3.2 Explain why a heading level should not be chosen for its size.
Where this comes from
Show the answer
- Headings are an outline; the level says where the section sits in it.
Check yourself
- I mentioned the outline.