html

Create and refactor semantic HTML with ARIA for accessibility.

5|Updated Jan 14, 2025
One-click install
npx skills add https://github.com/timmo001/dotfiles --skill html-timmo001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: html
Source: https://github.com/timmo001/dotfiles/tree/main/agents/.config/opencode/skills/html
Command: npx skills add https://github.com/timmo001/dotfiles --skill html-timmo001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write and review semantic, accessible HTML that enhances usability and maintainability.

Core Features & Use Cases

  • Writing Semantic HTML: Assist in creating markup with meaningful tags for better accessibility.
  • Refactoring: Improve existing noisy or wrapper-heavy markup for clarity and structure.
  • Use Case: Refactor a complex div-based form into proper labels, fieldsets, and ARIA roles, ensuring accessibility compliance.

Quick Start

Use the html skill to clean up the markup in the contact form snippet to improve semantics and accessibility.

Frequently Asked Questions about html

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor existing div-based HTML into semantic markup?

Refactoring semantic HTML involves replacing wrapper-heavy div tags with meaningful structural elements like labels, fieldsets, and landmarks to improve code clarity and accessibility compliance.

What is the best way to structure accessible HTML forms?

Accessible HTML forms require proper labels, fieldsets, and ARIA roles to ensure usability. Structuring semantic tags correctly enhances form clarity and accessibility compliance.

When do I need ARIA roles for HTML web markup?

ARIA roles are needed for HTML web markup when standard semantic tags are insufficient for accessibility. They clarify landmarks and interactive elements for assistive technologies.

Does this approach work for cleaning up complex contact form snippets?

Yes, cleaning up complex contact form snippets works by applying semantic HTML principles. This process replaces noisy markup with proper structural tags and ARIA attributes for accessibility.

What are the limitations of using semantic tags for web accessibility?

Semantic tags improve web accessibility but require understanding of ARIA best practices. Limitations arise when refactoring complex codebases without proper knowledge of landmarks and semantic structure.

Can I use semantic HTML to improve code maintainability?

Yes, semantic HTML improves code maintainability by ensuring clarity and structure. Meaningful tags enhance usability and make refactoring existing markup more straightforward.