html-css-guide
Installation
SKILL.md
HTML/CSS Guide
Applies to: HTML5, CSS3, SCSS/LESS, Responsive Design, WCAG 2.1 AA
Core Principles
- Semantic First: Use HTML elements for their meaning, not their appearance; style with CSS
- Accessible by Default: Every page must be navigable by keyboard, screen reader, and assistive technology
- Progressive Enhancement: Build a solid HTML foundation, then layer on CSS and JavaScript
- Mobile First: Design for the smallest viewport, then enhance with
min-widthmedia queries - Performance Budget: Minimize render-blocking resources; prefer system fonts, modern image formats, and critical CSS inlining
Guardrails
Semantic HTML
- Use
<main>once per page;<header>,<footer>,<nav>,<aside>for landmarks - Use
<article>for self-contained content;<section>for thematic groups with a heading - Use
<figure>/<figcaption>for captioned media;<time datetime="...">for dates
Related skills