html
Skill266 starsChanged 10 months agoApache-2.0View on GitHub
Guidelines for semantic HTML markup, document structure, forms, accessibility attributes, and modern HTML best practices
13 other projects use a version of this.
Adopted by
Most recently taken up by
- Pawel-Kica/claude-code-100their own version, first seen Sep 12, 2026
- renzobianchi/skillstheir own version, first seen Sep 2, 2026
- eliasstravik/skillstheir own version, first seen Aug 26, 2026
- mamachanko/skillstheir own version, first seen Jul 11, 2026
- nsmith/htmltheir own version, first seen Jul 4, 2026
- plannotator/effective-htmltheir own version, first seen Jun 13, 2026
Used with
Projects with it also use prototype, tdd and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
- +1 more from aws
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- plannotator/effective-html★ 3.5ksame name
- Surething-io/cockpit★ 40same name
- eliasstravik/skills★ 21same name
- nsmith/html★ 11same name
- joabgonzalez/ai-agents-skills★ 9same name
- julianoczkowski/html★ 9same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Pawel-Kica/claude-code-100★ 2same name
- arkan/skills★ 1same name
- huangqianqian120/skillslibrary★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- android-developmentSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
46 rules. 0 are common, 16 are distinctive, and 30 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
30
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Write semantic HTML to improve accessibility and SEO
- Distinctive: line 11
Use appropriate elements for their intended purpose
- Distinctive: line 12
Ensure proper document structure and hierarchy
- Very specific: line 18
Use <header> for introductory content and navigation
- Very specific: line 19
Use <main> for the primary content (one per page)
- Very specific: line 20
Use <footer> for footer content
- Very specific: line 21
Use <nav> for navigation sections
- Very specific: line 22
Use <aside> for tangentially related content
- Very specific: line 25
Use <article> for self-contained, distributable content
- Very specific: line 26
Use <section> for thematic grouping of content
- Very specific: line 27
Use appropriate heading hierarchy (<h1> through <h6>)
- Very specific: line 28
Only one <h1> per page, representing the main topic
- Very specific: line 31
Use <p> for paragraphs
- Very specific: line 32
Use <ul>, <ol>, <dl> for lists appropriately
- Very specific: line 33
Use <blockquote> for quotations
- Very specific: line 34
Use <figure> and <figcaption> for illustrations
- Very specific: line 39
Use <button> for clickable actions that don't navigate
- Very specific: line 40
Use <a> for links that navigate to URLs
- Very specific: line 41
Always include href attribute on links
- Very specific: line 42
Never use <div> or <span> for clickable elements
- Very specific: line 45
Use <form> with proper action and method attributes
- Very specific: line 47
Use appropriate input types (email, tel, number, etc.)
- Very specific: line 54
Always include alt attribute for images
- Distinctive: line 55
Use descriptive alt text for informational images
- Very specific: line 56
Use empty alt="" for decorative images
- Very specific: line 57
Use srcset and sizes for responsive images
- Very specific: line 63
Use poster attribute for video thumbnails
- Distinctive: line 64
Consider autoplay impact on user experience
- Distinctive: line 69
Use ARIA when native HTML semantics are insufficient
- Distinctive: line 70
Prefer native HTML elements over ARIA when possible
- Distinctive: line 71
Ensure ARIA attributes match actual element behavior
- Distinctive: line 81
Use landmark roles to define page regions
- Distinctive: line 82
Ensure all content is within a landmark
- Very specific: line 83
Use role="main", role="navigation", etc., only when semantic elements aren't available
- Distinctive: line 91
Use appropriate meta tags for SEO
- Distinctive: line 97
Use lowercase for element names and attributes
- Very specific: line 100
Avoid <font>, <center>, <b>, <i> for styling
- Distinctive: line 101
Use CSS for visual presentation
- Very specific: line 102
Use <strong> and <em> for semantic emphasis
- Distinctive: line 106
When using HTMX for interactivity:
- Very specific: line 107
Use hx-get, hx-post attributes for server requests
- Very specific: line 109
Use hx-swap to control how content is inserted
- Very specific: line 111
Use hx-push-url for URL updates without full refresh
- Distinctive: line 117
Use Bootstrap components with proper markup structure
- Distinctive: line 119
Use Bootstrap's utility classes for spacing and typography
- Very specific: line 126
Use loading="lazy" for below-fold images
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HTML Development Guidelines
Core Principles
- Write semantic HTML to improve accessibility and SEO
- Use appropriate elements for their intended purpose
- Ensure proper document structure and hierarchy
- Prioritize accessibility by using ARIA roles and attributes when needed
Semantic Elements
Document Structure
- Use
<header>for introductory content and navigation - Use
<main>for the primary content (one per page) - Use
<footer>for footer content - Use
<nav>for navigation sections - Use
<aside>for tangentially related content
Content Sections
- Use
<article>for self-contained, distributable content - Use
<section>for thematic grouping of content - Use appropriate heading hierarchy (
<h1>through<h6>) - Only one
<h1>per page, representing the main topic
Text Content
- Use
<p>for paragraphs - Use
<ul>,<ol>,<dl>for lists appropriately - Use
<blockquote>for quotations - Use
<figure>and<figcaption>for illustrations
Interactive Elements
Buttons and Links
- Use
<button>for clickable actions that don't navigate - Use
<a>for links that navigate to URLs - Always include
hrefattribute on links - Never use
<div>or<span>for clickable elements
Forms
- Use
<form>with properactionandmethodattributes - Associate labels with inputs using
forattribute - Use appropriate input types (
email,tel,number, etc.) - Group related inputs with
<fieldset>and<legend> - Include validation attributes (
required,pattern,min,max)
Media Elements
Images
- Always include
altattribute for images - Use descriptive alt text for informational images
- Use empty
alt=""for decorative images - Use
srcsetandsizesfor responsive images - Include
widthandheightto prevent layout shift
Video and Audio
- Provide captions and transcripts
- Include multiple source formats for compatibility
- Use
posterattribute for video thumbnails - Consider autoplay impact on user experience
Accessibility (ARIA)
When to Use ARIA
- Use ARIA when native HTML semantics are insufficient
- Prefer native HTML elements over ARIA when possible
- Ensure ARIA attributes match actual element behavior
Common ARIA Attributes
aria-labelfor accessible namesaria-describedbyfor additional descriptionsaria-hiddenfor decorative elementsaria-expandedfor expandable sectionsaria-livefor dynamic content updates
Landmarks
- Use landmark roles to define page regions
- Ensure all content is within a landmark
- Use
role="main",role="navigation", etc., only when semantic elements aren't available
Best Practices
Document Meta
- Include proper
<!DOCTYPE html>declaration - Set language attribute on
<html>element - Include viewport meta tag for responsive design
- Use appropriate meta tags for SEO
Code Quality
- Validate HTML using W3C validator
- Maintain consistent indentation
- Close all tags properly (including self-closing)
- Use lowercase for element names and attributes
Deprecated Elements
- Avoid
<font>,<center>,<b>,<i>for styling - Use CSS for visual presentation
- Use
<strong>and<em>for semantic emphasis
HTMX Integration
When using HTMX for interactivity:
- Use
hx-get,hx-postattributes for server requests - Leverage
hx-targetto specify update targets - Use
hx-swapto control how content is inserted - Implement
hx-confirmfor critical actions - Use
hx-push-urlfor URL updates without full refresh
Bootstrap Integration
When using Bootstrap:
- Leverage Bootstrap's grid system for layouts
- Use Bootstrap components with proper markup structure
- Include necessary ARIA attributes with components
- Use Bootstrap's utility classes for spacing and typography
- Minimize custom CSS by using Bootstrap classes
Performance
- Minimize DOM depth and complexity
- Load scripts with
deferorasyncwhen appropriate - Use
loading="lazy"for below-fold images - Preload critical resources with
<link rel="preload">
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

