跳至主要内容
小龙虾小龙虾AI
🤖

HTML Coder

Expert HTML development skill for building web pages, forms, and interactive content. Use when creating HTML documents, structuring web content, implementing...

下载2.1k
星标4
版本2.0.1
开发工具
安全通过

技能说明


name: html-coder description: 'Expert HTML development skill for building web pages, forms, and interactive content. Use when creating HTML documents, structuring web content, implementing semantic markup, adding forms and media, working with HTML5 APIs, or needing HTML templates, best practices, and accessibility guidance. Supports modern HTML5 standards and responsive design patterns.' collaborators:

  • make-skill-template
  • finalize-agent-prompt

HTML Coder Skill

Expert skill for professional HTML development with focus on semantic markup, accessibility, HTML5 features, and standards-compliant web content.

When to Use This Skill

  • Creating HTML documents with semantic structure
  • Building accessible forms with HTML5 validation
  • Implementing responsive markup and multimedia
  • Using HTML5 APIs (Canvas, SVG, Storage, Geolocation)
  • Troubleshooting validation or accessibility issues

Core Capabilities

  • Semantic HTML: Document structure, content sections, accessibility-first markup
  • Forms: All input types, validation attributes, fieldsets, labels
  • Media: Responsive images, audio/video, Canvas, SVG
  • HTML5 APIs: Web Storage, Geolocation, Drag & Drop, Web Workers
  • Accessibility: ARIA, screen reader support, WCAG compliance

Essential References

Core documentation for HTML experts:

Best Practices

Semantic HTML - Use elements that convey meaning: <article>, <nav>, <header>, <section>, <footer>, not div soup.

Accessibility First - Proper heading hierarchy, alt text, labels with inputs, keyboard navigation, ARIA when needed.

HTML5 Validation - Leverage built-in validation (required, pattern, type="email") before JavaScript.

Responsive Images - Use <picture>, srcset, and loading="lazy" for performance.

Performance - Minimize DOM depth, optimize images, defer non-critical scripts, use semantic elements.

Quick Patterns

Semantic Page Structure

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Page Title</title>
</head>
<body>
  <header><nav><!-- Navigation --></nav></header>
  <main><article><!-- Content --></article></main>
  <aside><!-- Sidebar --></aside>
  <footer><!-- Footer --></footer>
</body>
</html>

Accessible Form

<form method="post" action="/submit">
  <fieldset>
    <legend>Contact</legend>
    <label for="email">Email:</label>
    <input type="email" id="email" name="email" required
           pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
    <button type="submit">Send</button>
  </fieldset>
</form>

Responsive Image

<picture>
  <source media="(min-width: 1200px)" srcset="large.webp">
  <source media="(min-width: 768px)" srcset="medium.webp">
  <img src="small.jpg" alt="Description" loading="lazy">
</picture>

Troubleshooting

  • Validation: W3C Validator (validator.w3.org), check unclosed tags, verify nesting
  • Accessibility: Lighthouse audit, screen reader testing, keyboard nav, color contrast
  • Compatibility: Can I Use (caniuse.com), feature detection, provide fallbacks

Key Standards


如何使用「HTML Coder」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「HTML Coder技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能