semantic-html-and-seo

Solid

Semantic HTML5, SEO fundamentals, alt texts, progressive enhancement, SPA considerations, device capability detection, and user context awareness. Good HTML is the foundation of accessibility, SEO, and resilient UI. Use when building any web UI, reviewing markup quality, or optimising for search and accessibility.

Web & Frontend 31 stars 5 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Semantic HTML and SEO Good HTML is not just markup — it is the contract between your content, search engines, assistive technologies, and the browser. Semantic HTML, correct metadata, and progressive enhancement make UI resilient, findable, and accessible by default. --- ## Semantic HTML5 Use the element that describes the content's meaning, not just its appearance. ### Document structure ```html <header> <!-- site header, logo, primary nav --> <nav> <!-- navigation links --> <main> <!-- primary page content, one per page --> <article> <!-- self-contained content: blog post, product card, news item --> <section> <!-- thematic grouping with a heading --> <aside> <!-- tangentially related content: sidebar, callout --> <footer> <!-- site footer, secondary links, copyright --> ``` ### Headings One `<h1>` per page — the primary topic. Headings form an outline: do not skip levels (`h1` → `h3` without `h2`). ```html <h1>Product name</h1> <h2>Features</h2> <h3>Feature detail</h3> <h2>Pricing</h2> ``` ### Interactive elements ```html <button> <!-- clickable action, submits or triggers JS --> <a href> <!-- navigation to a URL --> <input> <!-- user data entry --> <select> <!-- option selection --> <details> / <summary> <!-- native disclosure/accordion --> ``` Never use `<div>` or `<span>` as interactive elements without full ARIA annotation — and even then, prefer the native element. --- ## Images and Alt Text ...

Details

Author
dembrandt
Repository
dembrandt/dembrandt-skills
Created
3 months ago
Last Updated
2 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category