
Good HTML makes a page easier to understand, navigate, and maintain. Review these thirteen areas when improving the HTML of a page for search and accessibility.
9. Key HTML factors for SEO
#1 Page title
Write a distinct, descriptive <title> for each page. Put the main topic where readers can see it quickly and keep the title natural. Google can choose a different title link for a result.
#2 Meta description
Use <meta name="description"> to summarize the page in one or two useful sentences. Search engines may use it in a snippet or choose text from the page that better matches the query.
<title>HTML form tags: fields and labels</title>
<meta name="description" content="Learn how to build accessible HTML forms with labels, inputs, and buttons.">
#3 Heading tags
Use a clear main heading and group related content under meaningful subheadings. Choose heading levels by structure. Use CSS to control their visual size.
#4 Layouts without tables
Use CSS Grid or Flexbox for page layout. Use HTML tables for tabular data, with suitable row or column headers.
#5 Minify HTML when it helps
Minification can reduce transferred bytes. Keep readable source for development and test the minified result, especially around inline content and preformatted text.
#6 Internal and external links
Link to relevant pages on your site and cite useful external sources. Prioritize whether a link helps the reader. There is no fixed target number of links.
#7 Anchor text
Use link text that explains what readers will find. Descriptive wording also makes links easier to understand out of context.
#8 Check for HTML errors
Run an HTML validator and fix problems that affect meaning or rendering, such as misnested tags or duplicate IDs. Test that links and resources load.
#9 Add a favicon
Provide a favicon with an appropriate <link rel="icon"> declaration. Use a simple design that remains recognizable at small sizes.
#10 Provide a sitemap
Maintain an XML sitemap with the canonical URLs you want indexed. A sitemap helps discovery, while internal links help people and crawlers navigate the site.
#11 Use appropriate alternative text
Describe the useful information in meaningful images. Decorative images generally use an empty alt="". When an image is a link or button, describe what the action does.
#12 Build for accessibility
Use native HTML controls, label form fields, support keyboard navigation, and test visible focus and contrast. Structure and meaningful names help users understand the page.
#13 Review the page with specialized tools
Use tools such as Search Console, Lighthouse, and an HTML checker to investigate indexing, performance, accessibility, and markup. Confirm findings with manual tests.
To check your markup, continue with the HTML validation lesson.