Must haves
- Enclose header content in a
<header>
element. - Include a “Skip to main content” link to allow keyboard users to quickly bypass the header links. See more information about skip navigation
- Ensure logos have descriptive alternative text (ex: “logo” is not correct or descriptive when the logo visually shows “Stanford Healthcare”).
- Tip: use CSS styled text whenever possible rather than using an image of text.
- Navigation sections are enclosed in a
<nav>
element (preferred) or haverole="navigation"
on the container. - Use list markup for lists of navigation links.
Learn more about brand compliance. Use Stanford and Source Sans 3 fonts to implement the Stanford header signature when possible.
Visual example

Do and Don't
Do | Don't |
---|---|
|
Here there is no semantic structure, no skip link, and the main logo/home link is an image rather than styled text and it has no |