Sens
A markup keyword wrapped in angle brackets that tells the browser what kind of element to create.
Ciblage
Use the tag name when the target is a broad element type, such as every button or every link.
Balisage
<header>...</header>Exemple de demande
Change the style of all button tags inside the header.
Sens
A complete piece of HTML, usually made from a start tag, content, and an end tag.
Ciblage
Say element when you mean one visible part of the page, such as a title, card, or button.
Balisage
<button>Menu</button>Exemple de demande
Move the language switcher element next to the menu button.
Sens
Extra information written inside a start tag, such as href, class, id, src, or aria-label.
Ciblage
Attributes are useful when the same tag appears many times but only one has a specific class, id, or label.
Balisage
<a href="/ko">Home</a>Exemple de demande
Add an aria-label attribute to the icon-only menu button.
Bases
Opening and closing tag
Opening and closing tag
<section>Content</section>
Sens
Many elements start with an opening tag and end with a matching closing tag.
Ciblage
This helps when explaining where a section begins and ends in markup.
Note
A missing closing tag can make the browser treat later content as part of the wrong element.
Balisage
<section>Content</section>Exemple de demande
Check that the card section has matching opening and closing tags.
Sens
A declaration that tells the browser to render the document as modern HTML.
Ciblage
It is usually handled by the framework and rarely edited during component work.
Balisage
<!doctype html>Exemple de demande
Do not change the document type; only edit the page component.
<html lang="ko">...</html>
Sens
The root element that wraps the whole HTML document.
Ciblage
The html element is used for document-wide settings such as language or theme attributes.
Balisage
<html lang="ko">...</html>Exemple de demande
Set the html lang attribute correctly for each locale.
<head><title>...</title></head>
Sens
The document area for metadata, title, icons, SEO tags, and scripts that are not visible page content.
Ciblage
Use this term when asking to change SEO title, description, canonical URL, or metadata.
Balisage
<head><title>...</title></head>Exemple de demande
Update the metadata title for the HTML structure terms page.
<body>Visible page</body>
Sens
The document area that contains visible page content.
Ciblage
Most layout, header, menu, and tool edits happen inside the body.
Balisage
<body>Visible page</body>Exemple de demande
Keep the body background consistent in light and dark mode.
<title>Engineering Tools for AI</title>
Sens
The page title shown in the browser tab and often used by search engines.
Ciblage
Use it when the visible H1 is fine but the browser or SEO title needs to change.
Balisage
<title>Engineering Tools for AI</title>Exemple de demande
Make the browser title more specific without changing the visible page heading.
<meta name="description" content="...">
Sens
Metadata tags that describe the page, viewport, encoding, or social preview information.
Ciblage
Meta descriptions affect previews and search snippets, not visible page text.
Balisage
<meta name="description" content="...">Exemple de demande
Update the meta description to mention searchable HTML terms.
Zones de page
header
header
<header>...</header>
Sens
A semantic region for introductory or top navigation content.
Ciblage
Use header when targeting the site title, top navigation, theme button, language button, or menu button.
Balisage
<header>...</header>Exemple de demande
Move the language switcher inside the header controls next to the menu button.
Sens
A semantic region for major navigation links.
Ciblage
Use nav when editing category links, menu groups, or page navigation.
Balisage
<nav>...</nav>Exemple de demande
Group the menu links inside nav by Converter, Math, and Programming.
Sens
The primary content area of a page. A page should generally have one main element.
Ciblage
Use main when distinguishing page content from the header, footer, or menu.
Balisage
<main>...</main>Exemple de demande
Keep the floating menu above the main content without pushing it down.
Zones de page
section
section
<section>...</section>
Sens
A thematic grouping of related content, usually with a heading.
Ciblage
Use section when targeting a large page block, such as hero, tools, or reference content.
Balisage
<section>...</section>Exemple de demande
Reduce the vertical padding of the tools section on mobile.
Zones de page
article
article
<article>...</article>
Sens
A self-contained content item, such as a card, post, reference entry, or result.
Ciblage
Use article when each repeated card has its own title and body.
Balisage
<article>...</article>Exemple de demande
Make each term article more compact on desktop.
Sens
A region for supporting content related to the main content, often a sidebar or note.
Ciblage
Use aside when asking for a filter panel, side navigation, or supporting note to move.
Balisage
<aside>...</aside>Exemple de demande
Move the aside below the main content on mobile.
Zones de page
footer
footer
<footer>...</footer>
Sens
A bottom region for legal links, secondary navigation, contact information, or closing content.
Ciblage
Use footer when targeting the page bottom rather than a section bottom.
Balisage
<footer>...</footer>Exemple de demande
Add a small legal link group to the footer.
Sens
A heading element from h1 to h6 that gives structure to page content.
Ciblage
Use heading level when asking to change the hierarchy, not only the visual size.
Note
Do not choose h1 or h2 only for size; use CSS for visual size and headings for document structure.
Balisage
<h1>Page title</h1>Exemple de demande
Keep the page title as h1 and make card titles h2 or h3.
Ciblage
Use paragraph when changing descriptive body text or its spacing.
Balisage
<p>Description text.</p>Exemple de demande
Shorten the paragraph under the hero title.
<a href="/ko/tools/math-prompt">Start</a>
Sens
A link element that navigates to another page, route, file, or location.
Ciblage
Use anchor or link when the element moves somewhere instead of performing an in-place action.
Balisage
<a href="/ko/tools/math-prompt">Start</a>Exemple de demande
Change the Browse tools link so it scrolls to the tools section.
Sens
A group of related items, either unordered with ul or ordered with ol.
Ciblage
Use list when asking to add, remove, reorder, or group repeated text items.
Balisage
<ul><li>Item</li></ul>Exemple de demande
Group the menu items into category lists.
<table><tr><td>Cell</td></tr></table>
Sens
A structured grid of rows and cells for tabular data.
Ciblage
Use table when the content is true row-and-column data, not just a visual grid of cards.
Balisage
<table><tr><td>Cell</td></tr></table>Exemple de demande
Use a table for truth table data instead of plain div blocks.
Contenu
Code block
code / pre
<pre><code>npm run build</code></pre>
Sens
code marks code text. pre keeps line breaks and spacing for multi-line code.
Ciblage
Use code block when commands or examples must keep exact spacing.
Balisage
<pre><code>npm run build</code></pre>Exemple de demande
Show terminal commands in a pre/code block.
Contenu
Strong and emphasis
strong / em
<strong>Important</strong>
Sens
Semantic emphasis elements. strong means importance; em means stress emphasis.
Ciblage
Use these for meaningful emphasis, not just decorative bold or italic styling.
Balisage
<strong>Important</strong>Exemple de demande
Use strong for the warning phrase inside the note.
<img src="/hero.png" alt="Tool preview">
Sens
An element that displays an image file.
Ciblage
Use image when asking to replace, resize, crop, or add alternative text to visual media.
Balisage
<img src="/hero.png" alt="Tool preview">Exemple de demande
Add a clear alt attribute to the hero image.
<img alt="Menu panel open">
Sens
Text that describes an image for screen readers and when the image cannot load.
Ciblage
Use alt when asking to improve accessibility or image meaning.
Note
Decorative images can use empty alt text, but meaningful images need a useful description.
Balisage
<img alt="Menu panel open">Exemple de demande
Add alt text that explains what the screenshot shows.
Sens
A vector graphic element often used for icons, diagrams, and scalable shapes.
Ciblage
Use SVG when the visual is a simple shape or icon that should remain crisp.
Balisage
<svg>...</svg>Exemple de demande
Use an SVG icon for the menu button if there is no icon library available.
Formulaires et contrôles
Button
button
<button type="button">Menu</button>
Sens
A control that performs an action when clicked or tapped.
Ciblage
Use button when the control changes UI state, opens a menu, submits a form, or runs an action.
Note
For navigation, a link is usually better than a button.
Balisage
<button type="button">Menu</button>Exemple de demande
Make the menu button close the language dropdown before opening the menu.
Formulaires et contrôles
Form
form
<form>...</form>
Sens
A group of controls used to collect and submit user input.
Ciblage
Use form when inputs belong to one submission or one input workflow.
Balisage
<form>...</form>Exemple de demande
Group the search input and category controls in one form-like control area.
Formulaires et contrôles
Label
label
<label for="search">Search</label>
Sens
Text that names a form control.
Ciblage
Use label when an input needs visible or screen-reader-friendly naming.
Balisage
<label for="search">Search</label>Exemple de demande
Add a label for the search input without cluttering the UI.
Formulaires et contrôles
Input
input
<input type="search" placeholder="Search">
Sens
A field where the user types or chooses a value.
Ciblage
Use input when targeting search fields, text fields, numbers, checkboxes, or other simple controls.
Balisage
<input type="search" placeholder="Search">Exemple de demande
Make the search input full width on mobile.
Formulaires et contrôles
Select
select
<select><option>English</option></select>
Sens
A native dropdown control for choosing one option from a list.
Ciblage
Use select when the control is a native form dropdown, not a custom menu panel.
Balisage
<select><option>English</option></select>Exemple de demande
Style the language select so the selected option is readable in dark mode.
Formulaires et contrôles
Textarea
textarea
<textarea>Long text</textarea>
Sens
A multi-line text input.
Ciblage
Use textarea when users need to paste or edit longer text.
Balisage
<textarea>Long text</textarea>Exemple de demande
Increase the textarea height for long prompt input.
<button class="icon-button">...</button>
Sens
An attribute used to group elements for styling or behavior.
Ciblage
Class is often the most practical way to target a repeated UI pattern.
Balisage
<button class="icon-button">...</button>Exemple de demande
Apply the same class to all menu category toggle buttons.
<section id="tools">...</section>
Sens
A unique identifier for one element on a page.
Ciblage
Use id when a link needs to scroll to a specific section or a label must connect to one input.
Note
The same id should not be reused for multiple elements on one page.
Balisage
<section id="tools">...</section>Exemple de demande
Add an id to the tools section so the Browse tools link can scroll there.
<a href="/ko/reference/html-structure-terms">HTML</a>
Sens
The destination URL or fragment for a link.
Ciblage
Use href when a link points to the wrong page or section.
Balisage
<a href="/ko/reference/html-structure-terms">HTML</a>Exemple de demande
Change the Programming menu href to the new HTML structure terms page.
<img src="/images/example.png" alt="Example">
Sens
The source file path for images, scripts, iframes, and similar media.
Ciblage
Use src when an image or script is missing, wrong, or should be replaced.
Balisage
<img src="/images/example.png" alt="Example">Exemple de demande
Replace the image src with the new preview image path.
Attributs
Data attribute
data-*
<html data-theme="dark">
Sens
Custom attributes used to store state or metadata on an element.
Ciblage
Use data attributes when styling depends on a state such as theme, open, closed, or selected.
Balisage
<html data-theme="dark">Exemple de demande
Use data-theme on the html element to switch dark mode colors.
<div role="menu">...</div>
Sens
An accessibility attribute that describes what kind of UI object an element represents.
Ciblage
Use role when a custom component needs clear semantics, such as menu, dialog, tab, or alert.
Note
Native semantic elements are usually better than adding role to a generic div.
Balisage
<div role="menu">...</div>Exemple de demande
Give the custom language list an appropriate menu role.
Accessibilité
aria-label
aria-label
<button aria-label="Toggle menu">...</button>
Sens
A text label for assistive technologies when visible text is missing or insufficient.
Ciblage
Use aria-label for icon-only controls such as menu, search, close, or theme buttons.
Balisage
<button aria-label="Toggle menu">...</button>Exemple de demande
Add an aria-label that clearly names the hamburger menu button.
Accessibilité
aria-expanded
aria-expanded
<button aria-expanded="false">Menu</button>
Sens
An accessibility attribute that tells whether a controlled panel is open or closed.
Ciblage
Use it for dropdown buttons, accordions, and menu toggles.
Balisage
<button aria-expanded="false">Menu</button>Exemple de demande
Update aria-expanded when the menu category opens or closes.
Relations
Parent and child
Parent and child
<nav><a>Link</a></nav>
Sens
A parent element contains child elements inside it.
Ciblage
Use this when the target depends on where it is located, such as links inside nav or buttons inside header.
Balisage
<nav><a>Link</a></nav>Exemple de demande
Style only the links that are children of the header nav.
Sens
Elements that share the same parent are siblings.
Ciblage
Use sibling when spacing or interaction depends on neighboring items.
Balisage
<button /> <button />Exemple de demande
Reduce the gap between sibling header buttons.
<section><article><h2>Title</h2></article></section>
Sens
The structure created when elements are placed inside other elements.
Ciblage
Use nesting when explaining exactly which inner element should change.
Balisage
<section><article><h2>Title</h2></article></section>Exemple de demande
In each card, move the request example below the property chips.
<div class="container">...</div>
Sens
An element used mainly to group, constrain, or position other elements.
Ciblage
Use wrapper when the layout needs a surrounding element rather than changes to each child.
Balisage
<div class="container">...</div>Exemple de demande
Add a wrapper around the header controls so the dropdown can align to the right.
Relations
Container
Container
<div class="container">Page content</div>
Sens
A wrapper that keeps page content aligned and constrained to a readable width.
Ciblage
Use container when changing the overall content width or side padding.
Balisage
<div class="container">Page content</div>Exemple de demande
Make the main content container slightly narrower on desktop.
Relations
Fragment
Fragment
<>...</>
Sens
A wrapper used in React to group elements without adding an extra DOM element.
Ciblage
Use fragment when grouping elements without affecting layout or CSS selectors.
Balisage
<>...</>Exemple de demande
Use a fragment instead of adding an unnecessary wrapper div.
Accessibilité
Semantic HTML
Semantic HTML
<main><section><h1>...</h1></section></main>
Sens
HTML that uses elements according to their meaning, not only their visual appearance.
Ciblage
Use semantic HTML when improving structure, accessibility, SEO, or maintainability.
Balisage
<main><section><h1>...</h1></section></main>Exemple de demande
Use semantic HTML for the reference page sections instead of generic divs everywhere.
Accessibilité
Landmark
Landmark
<header> <nav> <main> <footer>
Sens
Important page regions that help assistive technology users navigate quickly.
Ciblage
Header, nav, main, aside, and footer can act as landmarks.
Balisage
<header> <nav> <main> <footer>Exemple de demande
Keep one clear main landmark on each page.
Accessibilité
Accessible name
Accessible name
<button aria-label="Open menu">☰</button>
Sens
The name assistive technology uses to announce a control.
Ciblage
Use accessible name when a control is visually clear but not named for screen readers.
Balisage
<button aria-label="Open menu">☰</button>Exemple de demande
Give the theme toggle a clear accessible name in every locale.
Accessibilité
tabindex
tabindex
<button tabindex="0">Action</button>
Sens
An attribute that can affect keyboard focus order.
Ciblage
Use it carefully when custom controls are not reachable by keyboard.
Note
Positive tabindex values can create confusing keyboard order. Native focus order is usually better.
Balisage
<button tabindex="0">Action</button>Exemple de demande
Avoid positive tabindex values and keep keyboard order natural.