Engineering Tools for AI

プログラミング

ページ編集のためのHTML構造用語

タグ、要素、属性、ページ領域、フォーム、アクセシビリティラベルを検索できるHTML用語集です。

51

基本

Tag

Tag

<header>...</header>

意味

A markup keyword wrapped in angle brackets that tells the browser what kind of element to create.

対象指定

Use the tag name when the target is a broad element type, such as every button or every link.

マークアップ

<header>...</header>

依頼例

Change the style of all button tags inside the header.

基本

Element

Element

<button>Menu</button>

意味

A complete piece of HTML, usually made from a start tag, content, and an end tag.

対象指定

Say element when you mean one visible part of the page, such as a title, card, or button.

マークアップ

<button>Menu</button>

依頼例

Move the language switcher element next to the menu button.

基本

Attribute

Attribute

<a href="/ko">Home</a>

意味

Extra information written inside a start tag, such as href, class, id, src, or aria-label.

対象指定

Attributes are useful when the same tag appears many times but only one has a specific class, id, or label.

マークアップ

<a href="/ko">Home</a>

依頼例

Add an aria-label attribute to the icon-only menu button.

基本

Opening and closing tag

Opening and closing tag

<section>Content</section>

意味

Many elements start with an opening tag and end with a matching closing tag.

対象指定

This helps when explaining where a section begins and ends in markup.

注意

A missing closing tag can make the browser treat later content as part of the wrong element.

マークアップ

<section>Content</section>

依頼例

Check that the card section has matching opening and closing tags.

文書構造

DOCTYPE

DOCTYPE

<!doctype html>

意味

A declaration that tells the browser to render the document as modern HTML.

対象指定

It is usually handled by the framework and rarely edited during component work.

マークアップ

<!doctype html>

依頼例

Do not change the document type; only edit the page component.

文書構造

html

html

<html lang="ko">...</html>

意味

The root element that wraps the whole HTML document.

対象指定

The html element is used for document-wide settings such as language or theme attributes.

マークアップ

<html lang="ko">...</html>

依頼例

Set the html lang attribute correctly for each locale.

文書構造

head

head

<head><title>...</title></head>

意味

The document area for metadata, title, icons, SEO tags, and scripts that are not visible page content.

対象指定

Use this term when asking to change SEO title, description, canonical URL, or metadata.

マークアップ

<head><title>...</title></head>

依頼例

Update the metadata title for the HTML structure terms page.

文書構造

body

body

<body>Visible page</body>

意味

The document area that contains visible page content.

対象指定

Most layout, header, menu, and tool edits happen inside the body.

マークアップ

<body>Visible page</body>

依頼例

Keep the body background consistent in light and dark mode.

文書構造

title

title

<title>Engineering Tools for AI</title>

意味

The page title shown in the browser tab and often used by search engines.

対象指定

Use it when the visible H1 is fine but the browser or SEO title needs to change.

マークアップ

<title>Engineering Tools for AI</title>

依頼例

Make the browser title more specific without changing the visible page heading.

文書構造

meta

meta

<meta name="description" content="...">

意味

Metadata tags that describe the page, viewport, encoding, or social preview information.

対象指定

Meta descriptions affect previews and search snippets, not visible page text.

マークアップ

<meta name="description" content="...">

依頼例

Update the meta description to mention searchable HTML terms.

ページ領域

header

header

<header>...</header>

意味

A semantic region for introductory or top navigation content.

対象指定

Use header when targeting the site title, top navigation, theme button, language button, or menu button.

マークアップ

<header>...</header>

依頼例

Move the language switcher inside the header controls next to the menu button.

ページ領域

nav

nav

<nav>...</nav>

意味

A semantic region for major navigation links.

対象指定

Use nav when editing category links, menu groups, or page navigation.

マークアップ

<nav>...</nav>

依頼例

Group the menu links inside nav by Converter, Math, and Programming.

ページ領域

main

main

<main>...</main>

意味

The primary content area of a page. A page should generally have one main element.

対象指定

Use main when distinguishing page content from the header, footer, or menu.

マークアップ

<main>...</main>

依頼例

Keep the floating menu above the main content without pushing it down.

ページ領域

section

section

<section>...</section>

意味

A thematic grouping of related content, usually with a heading.

対象指定

Use section when targeting a large page block, such as hero, tools, or reference content.

マークアップ

<section>...</section>

依頼例

Reduce the vertical padding of the tools section on mobile.

ページ領域

article

article

<article>...</article>

意味

A self-contained content item, such as a card, post, reference entry, or result.

対象指定

Use article when each repeated card has its own title and body.

マークアップ

<article>...</article>

依頼例

Make each term article more compact on desktop.

ページ領域

aside

aside

<aside>...</aside>

意味

A region for supporting content related to the main content, often a sidebar or note.

対象指定

Use aside when asking for a filter panel, side navigation, or supporting note to move.

マークアップ

<aside>...</aside>

依頼例

Move the aside below the main content on mobile.

ページ領域

footer

footer

<footer>...</footer>

意味

A bottom region for legal links, secondary navigation, contact information, or closing content.

対象指定

Use footer when targeting the page bottom rather than a section bottom.

マークアップ

<footer>...</footer>

依頼例

Add a small legal link group to the footer.

コンテンツ

Heading

Heading

<h1>Page title</h1>

意味

A heading element from h1 to h6 that gives structure to page content.

対象指定

Use heading level when asking to change the hierarchy, not only the visual size.

注意

Do not choose h1 or h2 only for size; use CSS for visual size and headings for document structure.

マークアップ

<h1>Page title</h1>

依頼例

Keep the page title as h1 and make card titles h2 or h3.

コンテンツ

Paragraph

p

<p>Description text.</p>

意味

A paragraph of text.

対象指定

Use paragraph when changing descriptive body text or its spacing.

マークアップ

<p>Description text.</p>

依頼例

Shorten the paragraph under the hero title.

コンテンツ

Anchor link

a

<a href="/ko/tools/math-prompt">Start</a>

意味

A link element that navigates to another page, route, file, or location.

対象指定

Use anchor or link when the element moves somewhere instead of performing an in-place action.

マークアップ

<a href="/ko/tools/math-prompt">Start</a>

依頼例

Change the Browse tools link so it scrolls to the tools section.

コンテンツ

List

List

<ul><li>Item</li></ul>

意味

A group of related items, either unordered with ul or ordered with ol.

対象指定

Use list when asking to add, remove, reorder, or group repeated text items.

マークアップ

<ul><li>Item</li></ul>

依頼例

Group the menu items into category lists.

コンテンツ

Table

table

<table><tr><td>Cell</td></tr></table>

意味

A structured grid of rows and cells for tabular data.

対象指定

Use table when the content is true row-and-column data, not just a visual grid of cards.

マークアップ

<table><tr><td>Cell</td></tr></table>

依頼例

Use a table for truth table data instead of plain div blocks.

コンテンツ

Code block

code / pre

<pre><code>npm run build</code></pre>

意味

code marks code text. pre keeps line breaks and spacing for multi-line code.

対象指定

Use code block when commands or examples must keep exact spacing.

マークアップ

<pre><code>npm run build</code></pre>

依頼例

Show terminal commands in a pre/code block.

コンテンツ

Strong and emphasis

strong / em

<strong>Important</strong>

意味

Semantic emphasis elements. strong means importance; em means stress emphasis.

対象指定

Use these for meaningful emphasis, not just decorative bold or italic styling.

マークアップ

<strong>Important</strong>

依頼例

Use strong for the warning phrase inside the note.

画像とメディア

Image

img

<img src="/hero.png" alt="Tool preview">

意味

An element that displays an image file.

対象指定

Use image when asking to replace, resize, crop, or add alternative text to visual media.

マークアップ

<img src="/hero.png" alt="Tool preview">

依頼例

Add a clear alt attribute to the hero image.

画像とメディア

Alt text

alt

<img alt="Menu panel open">

意味

Text that describes an image for screen readers and when the image cannot load.

対象指定

Use alt when asking to improve accessibility or image meaning.

注意

Decorative images can use empty alt text, but meaningful images need a useful description.

マークアップ

<img alt="Menu panel open">

依頼例

Add alt text that explains what the screenshot shows.

画像とメディア

SVG

svg

<svg>...</svg>

意味

A vector graphic element often used for icons, diagrams, and scalable shapes.

対象指定

Use SVG when the visual is a simple shape or icon that should remain crisp.

マークアップ

<svg>...</svg>

依頼例

Use an SVG icon for the menu button if there is no icon library available.

フォームとコントロール

Button

button

<button type="button">Menu</button>

意味

A control that performs an action when clicked or tapped.

対象指定

Use button when the control changes UI state, opens a menu, submits a form, or runs an action.

注意

For navigation, a link is usually better than a button.

マークアップ

<button type="button">Menu</button>

依頼例

Make the menu button close the language dropdown before opening the menu.

フォームとコントロール

Form

form

<form>...</form>

意味

A group of controls used to collect and submit user input.

対象指定

Use form when inputs belong to one submission or one input workflow.

マークアップ

<form>...</form>

依頼例

Group the search input and category controls in one form-like control area.

フォームとコントロール

Label

label

<label for="search">Search</label>

意味

Text that names a form control.

対象指定

Use label when an input needs visible or screen-reader-friendly naming.

マークアップ

<label for="search">Search</label>

依頼例

Add a label for the search input without cluttering the UI.

フォームとコントロール

Input

input

<input type="search" placeholder="Search">

意味

A field where the user types or chooses a value.

対象指定

Use input when targeting search fields, text fields, numbers, checkboxes, or other simple controls.

マークアップ

<input type="search" placeholder="Search">

依頼例

Make the search input full width on mobile.

フォームとコントロール

Select

select

<select><option>English</option></select>

意味

A native dropdown control for choosing one option from a list.

対象指定

Use select when the control is a native form dropdown, not a custom menu panel.

マークアップ

<select><option>English</option></select>

依頼例

Style the language select so the selected option is readable in dark mode.

フォームとコントロール

Textarea

textarea

<textarea>Long text</textarea>

意味

A multi-line text input.

対象指定

Use textarea when users need to paste or edit longer text.

マークアップ

<textarea>Long text</textarea>

依頼例

Increase the textarea height for long prompt input.

属性

Class

class

<button class="icon-button">...</button>

意味

An attribute used to group elements for styling or behavior.

対象指定

Class is often the most practical way to target a repeated UI pattern.

マークアップ

<button class="icon-button">...</button>

依頼例

Apply the same class to all menu category toggle buttons.

属性

ID

id

<section id="tools">...</section>

意味

A unique identifier for one element on a page.

対象指定

Use id when a link needs to scroll to a specific section or a label must connect to one input.

注意

The same id should not be reused for multiple elements on one page.

マークアップ

<section id="tools">...</section>

依頼例

Add an id to the tools section so the Browse tools link can scroll there.

属性

href

href

<a href="/ko/reference/html-structure-terms">HTML</a>

意味

The destination URL or fragment for a link.

対象指定

Use href when a link points to the wrong page or section.

マークアップ

<a href="/ko/reference/html-structure-terms">HTML</a>

依頼例

Change the Programming menu href to the new HTML structure terms page.

属性

src

src

<img src="/images/example.png" alt="Example">

意味

The source file path for images, scripts, iframes, and similar media.

対象指定

Use src when an image or script is missing, wrong, or should be replaced.

マークアップ

<img src="/images/example.png" alt="Example">

依頼例

Replace the image src with the new preview image path.

属性

Data attribute

data-*

<html data-theme="dark">

意味

Custom attributes used to store state or metadata on an element.

対象指定

Use data attributes when styling depends on a state such as theme, open, closed, or selected.

マークアップ

<html data-theme="dark">

依頼例

Use data-theme on the html element to switch dark mode colors.

アクセシビリティ

role

role

<div role="menu">...</div>

意味

An accessibility attribute that describes what kind of UI object an element represents.

対象指定

Use role when a custom component needs clear semantics, such as menu, dialog, tab, or alert.

注意

Native semantic elements are usually better than adding role to a generic div.

マークアップ

<div role="menu">...</div>

依頼例

Give the custom language list an appropriate menu role.

アクセシビリティ

aria-label

aria-label

<button aria-label="Toggle menu">...</button>

意味

A text label for assistive technologies when visible text is missing or insufficient.

対象指定

Use aria-label for icon-only controls such as menu, search, close, or theme buttons.

マークアップ

<button aria-label="Toggle menu">...</button>

依頼例

Add an aria-label that clearly names the hamburger menu button.

アクセシビリティ

aria-expanded

aria-expanded

<button aria-expanded="false">Menu</button>

意味

An accessibility attribute that tells whether a controlled panel is open or closed.

対象指定

Use it for dropdown buttons, accordions, and menu toggles.

マークアップ

<button aria-expanded="false">Menu</button>

依頼例

Update aria-expanded when the menu category opens or closes.

階層と関係

Parent and child

Parent and child

<nav><a>Link</a></nav>

意味

A parent element contains child elements inside it.

対象指定

Use this when the target depends on where it is located, such as links inside nav or buttons inside header.

マークアップ

<nav><a>Link</a></nav>

依頼例

Style only the links that are children of the header nav.

階層と関係

Sibling

Sibling

<button /> <button />

意味

Elements that share the same parent are siblings.

対象指定

Use sibling when spacing or interaction depends on neighboring items.

マークアップ

<button /> <button />

依頼例

Reduce the gap between sibling header buttons.

階層と関係

Nesting

Nesting

<section><article><h2>Title</h2></article></section>

意味

The structure created when elements are placed inside other elements.

対象指定

Use nesting when explaining exactly which inner element should change.

マークアップ

<section><article><h2>Title</h2></article></section>

依頼例

In each card, move the request example below the property chips.

階層と関係

Wrapper

Wrapper

<div class="container">...</div>

意味

An element used mainly to group, constrain, or position other elements.

対象指定

Use wrapper when the layout needs a surrounding element rather than changes to each child.

マークアップ

<div class="container">...</div>

依頼例

Add a wrapper around the header controls so the dropdown can align to the right.

階層と関係

Container

Container

<div class="container">Page content</div>

意味

A wrapper that keeps page content aligned and constrained to a readable width.

対象指定

Use container when changing the overall content width or side padding.

マークアップ

<div class="container">Page content</div>

依頼例

Make the main content container slightly narrower on desktop.

階層と関係

Fragment

Fragment

<>...</>

意味

A wrapper used in React to group elements without adding an extra DOM element.

対象指定

Use fragment when grouping elements without affecting layout or CSS selectors.

マークアップ

<>...</>

依頼例

Use a fragment instead of adding an unnecessary wrapper div.

アクセシビリティ

Semantic HTML

Semantic HTML

<main><section><h1>...</h1></section></main>

意味

HTML that uses elements according to their meaning, not only their visual appearance.

対象指定

Use semantic HTML when improving structure, accessibility, SEO, or maintainability.

マークアップ

<main><section><h1>...</h1></section></main>

依頼例

Use semantic HTML for the reference page sections instead of generic divs everywhere.

アクセシビリティ

Landmark

Landmark

<header> <nav> <main> <footer>

意味

Important page regions that help assistive technology users navigate quickly.

対象指定

Header, nav, main, aside, and footer can act as landmarks.

マークアップ

<header> <nav> <main> <footer>

依頼例

Keep one clear main landmark on each page.

アクセシビリティ

Accessible name

Accessible name

<button aria-label="Open menu">☰</button>

意味

The name assistive technology uses to announce a control.

対象指定

Use accessible name when a control is visually clear but not named for screen readers.

マークアップ

<button aria-label="Open menu">☰</button>

依頼例

Give the theme toggle a clear accessible name in every locale.

アクセシビリティ

tabindex

tabindex

<button tabindex="0">Action</button>

意味

An attribute that can affect keyboard focus order.

対象指定

Use it carefully when custom controls are not reachable by keyboard.

注意

Positive tabindex values can create confusing keyboard order. Native focus order is usually better.

マークアップ

<button tabindex="0">Action</button>

依頼例

Avoid positive tabindex values and keep keyboard order natural.