Project: Accessible HTML Profile Page
Plan the reading order
Build a profile for a fictional mentor. First identify the main heading, skills and contact method. A single main landmark and explicit headings make navigation predictable. A skip link must point to an existing focusable target.
<a href="#profile">Skip to profile</a><main id="profile" tabindex="-1"> <h1>Mina — mentor</h1> <h2>Skills</h2> <ul> <li>HTML</li> </ul></main>The heading and skills list have a logical order.
Choose alternatives by purpose
A generic avatar beside a visible name adds no information, so use empty alt. If a portrait conveys identity not present in nearby text, describe its purpose instead. Use descriptive link text rather than a bare destination.
<img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Crect%20width%3D%22120%22%20height%3D%22120%22%20fill%3D%22%23dbeafe%22%2F%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2242%22%20r%3D%2220%22%20fill%3D%22%232563eb%22%2F%3E%3Cpath%20d%3D%22M20%20120%20Q20%2070%2060%2070%20Q100%2070%20100%20120%22%20fill%3D%22%232563eb%22%2F%3E%3C%2Fsvg%3E" alt="" width="120" height="120"><p>Mina, mentor</p><a href="mailto:mentor@example.com">Email the mentor</a>The avatar is decorative and the contact link names its action.
Assemble the profile
Combine the landmarks, image and skills list. Test the skip link, inspect heading levels, and check the accessible name of the navigation. The example address is fictional; do not send mail. The complete page is also in projects/profile.html.
<a href="#main">Skip to profile</a><header> <p>Community mentors</p> <nav aria-label="Profile"> <a href="#skills">Skills</a> </nav></header><main id="main" tabindex="-1"> <h1>Mina — HTML mentor</h1> <img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Crect%20width%3D%22120%22%20height%3D%22120%22%20fill%3D%22%23dbeafe%22%2F%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2242%22%20r%3D%2220%22%20fill%3D%22%232563eb%22%2F%3E%3Cpath%20d%3D%22M20%20120%20Q20%2070%2060%2070%20Q100%2070%20100%20120%22%20fill%3D%22%232563eb%22%2F%3E%3C%2Fsvg%3E" alt="" width="120" height="120"> <p>I help beginners build accessible websites.</p> <section id="skills"> <h2>Skills</h2> <ul> <li>HTML</li> <li>Accessibility</li> </ul> </section> <section> <h2>Contact</h2> <p> <a href="mailto:mentor@example.com">Email the mentor</a> </p> </section></main><footer> <p>Community mentors</p></footer>A complete semantic profile with working fragment destinations.
Common mistakes and practice
Acceptance checklist: one main heading, logical headings, descriptive links, appropriate alt text, a visible focus indicator and a valid skip target. Use the keyboard and a browser accessibility inspector. A passing local check is not a screen-reader audit.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Project: Accessible HTML Profile Page — Knowledge Check
Apply the project design and review concepts taught in this lesson.
What is the purpose of main?
What should a skip link target?
When is alt="" suitable?
Which contact link text is clearest?
What is still needed after DOM checks?