AGENT SKILLBY DEMBRANDT
Semantic HTML and SEO
AT A GLANCE
Semantic HTML and SEO is an agent skill for SEO. Good HTML is not just markup — it is the contract between your content, search engines, assistive technologies, and the browser. It is published by dembrandt in the dembrandt/dembrandt-skills GitHub repository (22 stars) under the MIT license. Install it with: npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo
- SOURCE REPOSITORY
- dembrandt/dembrandt-skills (opens GitHub in a new tab)
- REPO STARS
- SOURCE REPOSITORY
- LICENSE
- MIT
- CATEGORIES
- SKILL.MD SIZE
- 8.5 KB251 LINES
QUICK ANSWER
- WHAT IT IS01
- Good HTML is not just markup, it is the contract between your content, search engines, assistive technologies, and the browser. What sets it apart is how it narrows search and SEO workflows into one specific workflow rather than a broad, generic prompt.
- INPUTS02
- Context for search and SEO workflows: your goals, audience, constraints, and any source material the skill asks for.
- OUTPUT03
- A ready-to-use result for search and SEO workflows: the analysis, copy, or recommendations the agent produces.
INSTALL
One command adds this skill from its source repository.
npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seoREAD THE SKILL.MD BELOW BEFORE YOU RUN IT. SKILLS INSTRUCT YOUR AGENT.
SKILL.MD
The full file, as published in the source repository. Copy it, download it or open it on GitHub.
ON THIS PAGE · 24
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#
<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).
<h1>Product name</h1>
<h2>Features</h2>
<h3>Feature detail</h3>
<h2>Pricing</h2>Interactive elements#
<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#
Every <img> needs an alt attribute. What goes in it depends on context.
| Image type | Alt text |
|---|---|
| Informative (product photo, chart) | Describe content: alt="Red leather sofa, three-seater" |
| Functional (icon button, logo link) | Describe function: alt="Go to homepage" |
| Decorative | Empty: alt="" — screen readers skip it |
| Complex (chart, diagram) | Short alt + longer description nearby or in <figcaption> |
<!-- Informative -->
<img src="sofa.jpg" alt="Red leather sofa, three-seater">
<!-- Decorative -->
<img src="divider.svg" alt="">
<!-- With caption -->
<figure>
<img src="chart.png" alt="Bar chart showing revenue growth Q1–Q4 2025">
<figcaption>Revenue grew 42% year-on-year in Q4 2025.</figcaption>
</figure>SEO Fundamentals#
Title and description#
<title>Product Name — Short descriptor | Brand</title>
<meta name="description" content="One or two sentences. What this page is, who it is for, what they will find.">- Title: 50–60 characters. Most important keyword first.
- Description: 120–160 characters. Shown in search results — write for the human, not the algorithm.
Canonical URL#
<link rel="canonical" href="https://example.com/the-definitive-url">Prevents duplicate content penalties when the same page is accessible via multiple URLs.
Open Graph (social sharing)#
<meta property="og:title" content="Page title">
<meta property="og:description" content="Page description">
<meta property="og:image" content="https://example.com/og-image.jpg">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<!-- Twitter/X -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Page title">
<meta name="twitter:image" content="https://example.com/og-image.jpg">OG image: 1200×630px. Appears when the URL is shared on Slack, LinkedIn, Twitter, iMessage.
Structured Data (JSON-LD)#
Machine-readable content enables rich search results.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Product Name",
"description": "Product description",
"image": "https://example.com/product.jpg",
"offers": {
"@type": "Offer",
"price": "49.00",
"priceCurrency": "EUR"
}
}
</script>Common types: Product, Article, BreadcrumbList, FAQPage, Organization, SiteLinksSearchBox.
Progressive Enhancement#
Build in layers. The core content and function must work without JavaScript. Enhance with CSS. Enhance further with JS.
Layer 1: HTML — content is readable, links work, forms submit
Layer 2: CSS — layout, typography, visual design
Layer 3: JS — interactivity, animations, dynamic contentIn practice:
- Forms must submit via native
<form action>without JS — JS can intercept and enhance with fetch - Navigation links must be real
<a href>— JS can add transitions - Content must be in the HTML — JS can enhance with lazy-load or personalisation
- Images must have
src— JS can add lazy loading vialoading="lazy"(now native)
SPA Considerations#
Single-page applications break browser defaults that SEO and accessibility depend on. Fix them explicitly.
Server-side rendering or static generation#
Client-rendered HTML is not reliably indexed by search engines. Use SSR (Next.js, Nuxt, SvelteKit) or static generation for any content that needs to be found.
Title and meta updates#
Update document.title and meta tags on every route change. Use the framework's <Head> component or equivalent.
Focus management#
On route change, move focus to the new page's <h1> or <main> — screen readers do not detect SPA navigation automatically.
// After route change
document.querySelector('h1')?.focus();Scroll restoration#
Restore scroll position to top on navigation, or to the saved position on back navigation. Browser default scroll restoration is disabled in SPAs.
History API#
Use pushState / replaceState so back/forward navigation and bookmarking work correctly.
Device Capabilities and User Context#
Design and code should adapt to what the device and user can actually do.
Client-side storage as a personalization tool#
localStorage, sessionStorage, and other browser capabilities (cookies, IndexedDB, media/permission queries) are legitimate tools for tailoring the experience — last view mode, chosen locale, a dismissed banner, an in-progress draft, a returning user's context.
Guardrails:
- Personalise from real understanding, not a guess. What to persist and pre-fill safely usually needs customer testing — a wrong assumption in stored state is worse than a neutral default.
- Scope and consent.
sessionStoragefor one session,localStorageacross sessions; never store anything sensitive client-side; honour consent. - Re-validate every 2–3 years. Needs drift; a personalization that fit at launch becomes friction. Revisit, ideally with fresh testing.
Input method detection#
@media (hover: hover) {
/* hover states — mouse or trackpad */
.btn:hover { background: var(--color-primary-hover); }
}
@media (hover: none) {
/* touch device — no hover, larger targets */
.btn { min-height: 44px; }
}Pointer precision#
@media (pointer: coarse) {
/* fat-finger touch — increase target sizes */
.interactive { min-height: 44px; min-width: 44px; }
}
@media (pointer: fine) {
/* mouse — precise, can use smaller targets */
}Network conditions#
<!-- Lazy load images below the fold -->
<img src="product.jpg" loading="lazy" alt="...">
<!-- Serve modern formats with fallback -->
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="...">
</picture>User preferences#
@media (prefers-reduced-motion: reduce) { /* disable animations */ }
@media (prefers-color-scheme: dark) { /* dark mode tokens */ }
@media (prefers-contrast: more) { /* increase contrast */ }
@media (forced-colors: active) { /* Windows high contrast mode */ }Review Checklist#
- One
<h1>per page, headings form a logical outline - Semantic elements used:
<main>,<nav>,<header>,<footer>,<article>,<section> - Every
<img>has a meaningfulaltoralt=""for decorative images -
<title>is unique per page, 50–60 characters, keyword-first -
<meta name="description">present and 120–160 characters - Open Graph tags present on all shareable pages
-
<link rel="canonical">on pages accessible via multiple URLs - Structured data (JSON-LD) on product, article, and FAQ pages
- Forms work without JavaScript
- SPA updates
document.titleand meta tags on route change - SPA moves focus on route change
- Hover states scoped to
@media (hover: hover) - Touch targets ≥ 44px on
@media (pointer: coarse) - Images use
loading="lazy"below the fold -
prefers-reduced-motionrespected
FAQ
07 QUESTIONS
01What is the Semantic HTML and SEO agent skill?
Good HTML is not just markup, it is the contract between your content, search engines, assistive technologies, and the browser. It is listed under SEO in the 100xLab agent skills directory.
02How do I install Semantic HTML and SEO in Cursor, Claude Code, or Codex?
Run npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo in the project where you want it, then ask your agent for the skill by name. The --skill flag installs only Semantic HTML and SEO, not every skill in the repository.
03What does the Semantic HTML and SEO SKILL.md cover?
The SKILL.md includes sections on Semantic HTML5, Document structure, Headings, Interactive elements, Images and Alt Text and SEO Fundamentals. Read the full text on this page or in plain markdown at /resources/agent-skills/dembrandt-dembrandt-skills--semantic-html-and-seo--1707wlv/raw.
04Which agents can use Semantic HTML and SEO?
Semantic HTML and SEO installs with the cross-agent skills installer (npx skills add), which sets it up for agents such as Claude Code, Cursor and Codex. Each agent loads the SKILL.md when you ask for the skill by name.
05What license is Semantic HTML and SEO under?
The dembrandt/dembrandt-skills repository declares the MIT license. Read the license file in the repository before you copy or redistribute the skill.
06Is Semantic HTML and SEO free to use?
Reading, copying and installing Semantic HTML and SEO costs nothing: it is published in a public GitHub repository under the MIT license. Reuse and redistribution follow that license.
07Where is the source of Semantic HTML and SEO?
Semantic HTML and SEO comes from https://github.com/dembrandt/dembrandt-skills, which has 22 GitHub stars. The SKILL.md is at https://github.com/dembrandt/dembrandt-skills/blob/HEAD/skills/semantic-html-and-seo/SKILL.md. The author is dembrandt.
Need an agent workflow built around your stack?
Tell us the workflow you want automated. We reply within 4 working hours (IST).
ATTRIBUTION
Semantic HTML and SEO was written by its original authors and is published in dembrandt/dembrandt-skills (opens GitHub in a new tab) under the MIT license. All rights stay with the original authors.
100xLab did not write, maintain or endorse this skill. This page lists it for discovery. Repo stars belong to the source repository, not to the skill. Review any skill before you install it.