<!doctype html>
lang
using ISO 639-1 code
<html lang=“en”>
<meta charset=“utf-8”>
<meta http-equiv=“x-ua-compatible” content=”ie=edge”>
<title></title>
<meta name=“viewport” content=“width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no” />
<meta name=“viewport” content=“width=device-width, initial-scale=1.0, shrink-to-fit=no />
<header>
, <nav>
, <main>
, <footer>
, <aside>
footer
for high level nav
aria-label=“site"
sidebar
/aside
for page level nav
aria-label=“page"
header
aria-label=“site”
<h1>
<title>
<main>
section<h2>
then it should be using <h3>
as the headingWhy bother?
[ ] Level A 1.3.1 - Info and Relationships
<ul>
and <li>
[ ] Level AA 1.4.5 - Images of Text
[ ] Level AA 3.1.3 - Consistent Navigation
[ ] Level AA 2.4.5 - Multiple Ways
<form role=“search”>
<input type=“search”>
this also good for SEO, so also use it in non static web as well
put it in footer as a link to sitemap page
<p>
<a href=“sitemap.html”>Site Map</a>
</p>
Site Map should looks like table of content
<ul>
or <ol>
or combination of those<h2>
- <h6>
[ ] Level A 2.4.4 - Link Purpose
The purpose of link can be deternime by the link text alone
<p>
<a href=“sitemap.html”>Site Map</a>
</p>
Read More link is violating this guideline
User more verbose text link
Read more on our <a href=“products.html”>products</a> page
or if too long, visually hide the long text by wrapping it in span
with class:
sr-only
show-for-sr
.visually-hidden {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
[ ] Level AA 3.2.4 - Consistent Identification
<button>Search</button>