Lesson 2 · Unit 01
Meaning
Elements chosen for what content is, not how it looks
What you practise
- Headings in order, landmarks (
header,nav,main,footer), links against buttons, images withalt, what a screen reader hears
Try a question from this lesson
Pick one
With CSS this looks like a heading over a paragraph. A screen reader user asks for the list of headings on the page. What do they get?
<div class="title">Menu</div>
<div class="text">Tea, milk, cocoa</div>Correct answer
An empty list
Why
A <div> means nothing, however it is styled. Software cannot see that big bold text is a heading. Only <h1> to <h6> are headings, and blind users move through a page by jumping between them.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Say what it is
Semantic elements name their content: <h1> is a heading, <nav> is navigation, <button> is a button.
Browsers, screen readers and search engines all read those names. A <div> or <span> says nothing, so keep them for grouping things for CSS.
Choose by meaning. Looks are changed later.
<h1>Menu</h1>
<p>Tea, milk, cocoa</p>11 more exercises in the app
- 4× multiple choice
- 2× true or false
- 1× match the pairs
- 1× order the lines
- 2× type the answer
- 1× fill the blanks
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.