---
name: html
description: Write semantic, accessible, performant HTML with modern best practices. Use when asked to (1) create HTML pages or documents, (2) write semantic markup, (3) improve accessibility, (4) optimize HTML structure and performance, (5) implement forms, tables, or complex layouts, or when phrases like "HTML page", "web page", "markup", "semantic HTML", "accessibility" appear.
---
# Expert HTML Development
Write clean, semantic, accessible HTML that follows modern web standards and best practices.
## MCP Integration - Context7
**CRITICAL: Before writing or editing ANY HTML code, ALWAYS use the Context7 MCP server to check for relevant context.**
Context7 provides access to a knowledge base that may contain:
- Project-specific HTML patterns and conventions
- Custom component libraries and templates
- Style guide requirements
- Accessibility standards for the project
- Performance benchmarks and requirements
- Team preferences and coding standards
**Workflow:**
1. **Before writing code:** Query Context7 for relevant patterns, conventions, or examples
2. **During editing:** Check Context7 for project-specific requirements that might affect your changes
3. **After writing:** Verify your code aligns with any Context7 guidance
Use Context7 to search for topics like:
- "HTML conventions"
- "accessibility requirements"
- "component templates"
- "form patterns"
- "performance standards"
- Specific component or pattern names
**Never skip the Context7 check** - it ensures your HTML aligns with project standards and leverages existing patterns.
## Core Principles
1. **Semantic first** - Use elements for their intended meaning, not just appearance
2. **Accessibility by default** - Every user deserves a great experience
3. **Progressive enhancement** - Start with working HTML, layer on CSS/JS
4. **Performance matters** - Optimize for speed and efficiency
## Document Structure
### Minimal Valid HTML5 Document
```html
Page Title - Site Name
```
### Essential Meta Tags
```html
Specific, Descriptive Title | Brand
```
## Semantic HTML Elements
### Use the Right Element for the Job
```html
Home
Article Title
Article content...
Article Title
Article content...
```
### Sectioning Elements
| Element | Purpose | When to Use |
|---------|---------|-------------|
| `` | Introductory content | Site/section header, not just "top of page" |
| `