Значение
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.
Значение
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.
Значение
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.
Значение
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 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><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>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>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 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.
Значение
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.
Значение
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.
Значение
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.
Значение
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.
<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.
Значение
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><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.
<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.
<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.
Значение
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.
Значение
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.
<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.
<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.
<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.
<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.
<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.
Значение
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.
<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.
<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.
<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.
Значение
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.