HTML
Synonyms: HyperText Markup Language, HTML Markup, HTML Code, Web Page Markup
Definition
Use cases
- Hard-to-read pages: Incorrect heading structure makes it harder for people to scan content and move between sections with a screen reader.
- Confusing forms: Missing labels leave users unsure what information to enter.
- Difficult navigation: Links and buttons built with the wrong HTML elements may not work as expected with a keyboard or assistive technology.
How it's used in practice
- Structure the content: Use headings, paragraphs, lists, and sections in a clear order.
- Choose the right elements: Use links for navigation and buttons for actions.
- Label form fields: Connect each input to a clear, visible label.
- Add image descriptions: Write useful alt text for images that carry information.
- Check accessibility: Test keyboard navigation and review the page with a screen reader.
<button> comes with built-in keyboard support. A clickable <div> needs extra code to provide similar behavior.Challenges & limitations
- Limited visual control: HTML structures content. CSS controls colors, spacing, and layout.
- Accessibility mistakes: Incorrect elements or missing labels can make pages harder to use.
- Browser differences: Some HTML features may behave differently across browsers and devices.
Free resources
- MDN: Structuring Content with HTML — how to organize website content using headings, lists, images, links, and forms.
- NN/g: Website Forms Usability: Top 10 Recommendations — how to design usable form fields, labels, instructions, and validation.
