अर्थ
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.
मूल बातें
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.
अर्थ
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.
अर्थ
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.
अर्थ
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.
अर्थ
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.
लक्ष्य
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.
फ़ॉर्म और नियंत्रण
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.
<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.
<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.
<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.