Can you find where the next camogie match is on a page with no styling?
You open a club events page to find out where the camogie match is. The page has no special colours or layout. Can you still find the result quickly, even if you’re listening to the page instead of looking at it?
You’ve used SQL to retrieve records from a database. The events table stores an ID as an integer and the event name and venue as text. The query gives you the name and venue for each event. Before choosing any HTML, list what visitors need to do.
Look at the browser tab first. It says Club Events, so you can recognise the page among your open tabs. Now look inside the page. You see Club Events again as the main heading. The title element names the tab, and H one marks the main heading.
Your page already shows Club Events as its main heading, but you need the browser tab to say it too. Pick the change that sets the tab text without changing the heading.
The document starts by declaring HTML and setting the language to English. The head holds the title. In the body, the main heading comes first, then the filter. Match the label’s for value to the input’s ID so the browser links the words to the field.
Add a heading for the results, then start the table. Use header cells with column scope for Event and Venue. Put each record from the query in its own row. This HTML displays the rows. To filter them, you can later use JavaScript to hide rows that don’t match the search.
With no added styling, use your screen reader’s headings list to jump to Event results. In the table, find Camogie under Event. Move across the same row to Ennis. Your screen reader can announce Venue with the cell, so you know what Ennis refers to.
Now the club gives you a start time for each match. You add a third column, and someone using a screen reader needs to know that its values are start times. Pick the markup for the new header cell.
Bold text may look like a heading, but it won’t appear in your screen reader’s headings list. An H two marks a section heading you can jump to. In a table, bold text in a data cell only changes its appearance. A header cell with column scope identifies the column.
Try this exam-style prompt: state one user requirement and justify a structural choice. You could say that visitors need to identify the venue for each event. Then explain how a column header lets a screen reader identify a venue cell as such when a visitor reaches it.