Skip to content
Back to skills

Semantic Html

ASecurity

Use semantic HTML elements instead of div. Use when writing or reviewing JSX/HTML markup in React or web components.

  • 3 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added May 27, 2026
data-aireact

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add ncaq/konoka --skill semantic-html --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Semantic Html?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Semantic Html
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ncaq-semantic-html/badge)](https://www.skillsdirectory.com/skills/ncaq-semantic-html)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: semantic-html
description: Use semantic HTML elements instead of div. Use when writing or reviewing JSX/HTML markup in React or web components.
user-invocable: false
---

# セマンティックHTML

意味のある構造には、`<div>`ではなくセマンティックHTML要素をなるべく使ってください。
セマンティックHTML要素は、アクセシビリティツールにもLLMにも人間にも読みやすいからです。
`<div>`にコメントで意味を補足するくらいなら、その意味を表す要素を選びます。

```tsx
// 避ける
<div>
  <h3>承認セクション</h3>
  <textarea />
  <button>承認</button>
</div>

// 良い
<section>
  <h3>承認セクション</h3>
  <textarea />
  <button>承認</button>
</section>
```

## 要素の使い分け

- `<main>`: ページの主要コンテンツです。
  1ページにつき1つだけ使います。
- `<article>`: 独立して意味をなすコンテンツです。
  ブログ記事、コメント、カードなどが該当します。
- `<section>`: 見出し(`<h1>`から`<h6>`)を伴うコンテンツのまとまりです。
  ページ内の各セクション、フォームのグループなどが該当します。
- `<header>`: セクションやページの導入部分です。
  タイトル、ロゴ、ナビゲーションなどを含みます。
- `<footer>`: セクションやページの末尾です。
  関連リンク、アクションボタン群などを含みます。
- `<nav>`: 主要なナビゲーションリンクのまとまりです。
  サイドバーメニュー、パンくずリスト、ページ内リンクなどが該当します。
- `<aside>`: メインコンテンツに対する補足情報です。
  サイドバー、注釈、関連リンクなどが該当します。

## `<div>`を使ってよい場合

`<div>`は、意味を持たないコンテナにだけ使います。

- FlexboxやGridなど、レイアウトのためのラッパー
- スタイリングのためだけのグルーピング
- 上記のどのセマンティックHTML要素にも該当しないコンテナ

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.