DIVMASTER / LEARN

The web, explained simply.

Start with the basics or find a specific setting. The same explanations are available in the app guide.

Found: 229

Getting started

Your first project

A web page consists of elements. A basic div is like a box that can contain text and other elements. HTML describes content, CSS controls appearance, and JavaScript handles interactions.

Step by step

  1. 1. Open New project and enter a name.
  2. 2. Select div, add text and set its appearance.
  3. 3. Check the preview and create the project.
  4. 4. In the editor, open Properties, change the size and press the check-mark Apply button.
For developers

CSS updates without reloading the canvas document. HTML or JavaScript edits can restart the preview; DOM changes created only by a running script are not persisted.

Three files: HTML, CSS and JavaScript

index.html contains markup, styles.css contains styles, and script.js contains scripts. Think of them as the content, appearance and behavior of one page.

Step by step

  1. Switch to Code and inspect the HTML, CSS and JS tabs. Change one file at a time to understand each result. Save after checking your changes.
Code example
<div class="card">Hello</div>
.card { padding: 24px; border-radius: 16px; }
For developers

Check the styles.css and script.js references in HTML. Source files are authoritative for preview and ZIP export; project metadata does not replace your code.

Visual elements in new projects

The picker groups visual elements into containers, text, forms, lists, tables and media. Utility tags remain available in source code; they are not offered as standalone GUI elements.

Step by step

  1. Enter a name and choose an element.
  2. Set its relevant attributes and CSS.
  3. For tables, choose rows, columns and a header row.
  4. Create the project.
For developers

The HTML handbook still covers 115 tags for learning. This is not the number offered in the new-project wizard.

Save and apply

Save in the top bar writes the current HTML, CSS and JS and immediately shows the updated canvas. Code edits remain drafts until saved.

Step by step

  1. Edit source or visual properties.
  2. Press Save in the top bar.
  3. Check the canvas.
  4. Reopen the project to verify persistence.
For developers

CSS updates styles without reloading the document. HTML or JS changes can restart the preview. DOM changes made only by scripts are not saved as source code.

Size units: px, %, rem and auto

px supplies a fixed length. % relates to the parent size. rem follows the root font size. auto lets the browser choose. Different properties accept different units.

Step by step

  1. Start with pixels for easy comparison. Try 100% for a full-width box, then limit it with max-width. Use rem and a comfortable line height for text.
Code example
width: 100%;
max-width: 36rem;
min-height: 120px;
For developers

Percentage height usually requires a definite containing-block height. vh and vw relate to the viewport; dvh follows a changing mobile viewport. calc(), min(), max() and clamp() are available in code.

HTML: structure

Nesting and page structure

Tags form a tree: parents contain child elements. Divide the page into meaningful parts using header, nav, main, section, article and footer.

Step by step

  1. In HTML, add an h1 heading and a p paragraph inside main. Close tags in reverse opening order. Indentation makes nesting easier to read.
Code example
<main><h1>Title</h1><p>Text</p></main>
For developers

Browsers repair some invalid markup, so the DOM can differ from the source. For example, p cannot wrap arbitrary block elements. Void tags such as img, input and br have no end tags.

Attributes, classes and identifiers

An attribute is a setting in an opening tag. id identifies one element; class can be reused. href provides a link destination; src supplies an image or media source.

Step by step

  1. Fill in the attributes you need in a new project. Use a meaningful class for CSS. Avoid unnecessary empty attributes. Checkboxes control boolean attributes.
Code example
<input type="email" required>
For developers

Boolean attributes depend on presence: disabled="false" still disables the element. Generated values are escaped. IDs should be unique; data-* and aria-* have their own value rules.

Text, headings, links and lists

h1–h6 define heading levels, p is a paragraph, strong indicates importance, and em adds emphasis. ul and ol contain li items. Links should have meaningful labels.

Step by step

  1. Add text to the element content. Edit HTML for lists and multiple paragraphs. Set href on links. Style text using CSS without changing the meaning of the tag.
Code example
<h1>Title</h1><p>Read <a href="https://example.com">more</a>.</p>
For developers

Do not substitute font size for heading hierarchy. Use rel="noopener" on external links with target="_blank". Underlining and contrast distinguish links from plain text.

Media and background images

For ordinary buttons and other elements, use Choose a background image from this device in properties or the background section. Pictures, video, audio and documents can also be selected for suitable elements.

Step by step

  1. On Android, complete the rewarded advertisement.
  2. Browse folders in the system file picker and choose a file.
  3. Check the preview and save.
  4. Export a ZIP with your assets.
Code example
<img src="https://example.com/photo.jpg" alt="A mountain" width="320">
For developers

The system picker grants access to a selected file, not the whole storage. Copies go into image, video, audio and dokument; external URLs are not downloaded automatically.

Inputs and forms

A form collects entered data. label explains a field, input defines its type, textarea handles multiple lines, and select offers choices. A form does not provide a server to process submissions.

Step by step

  1. Connect label and input using matching for and id values. Choose type and name. Add required when appropriate. Set type="button" for buttons that should not submit a form.
Code example
<label for="email">Email</label><input id="email" type="email" required>
For developers

placeholder does not replace label. Browser checks for required, pattern, min and max do not replace server validation. action and method control submission; sandboxed preview may restrict some actions.

Tables and disclosure blocks

table represents tabular data: tr is a row, th a header, and td a cell. details and summary provide a disclosure block without JavaScript.

Step by step

  1. Create a table with a caption and clear headers. Put summary first inside details for expandable information. Use flex or grid to arrange ordinary cards.
Code example
<table><caption>Schedule</caption><tr><th scope="col">Day</th></tr><tr><td>Monday</td></tr></table>
For developers

Avoid tables for page layout. scope associates th with data regions. colspan and rowspan merge cells. details open is a boolean attribute rather than a string-valued state.

Metadata and invisible elements

head contains page metadata: title, meta, link and style. script runs code. template holds an initially invisible fragment. These tags need not produce visible boxes.

Step by step

  1. When choosing a metadata tag, check the source and attribute purpose. Add a viewport declaration in head for mobile pages. Put visible content in body.
Code example
<meta name="viewport" content="width=device-width, initial-scale=1">
For developers

Keep application chrome styles separate from project styles. User JavaScript runs in the project context. External scripts and styles require network access and may be limited by CSP or sandbox.

Accessibility and semantic HTML

An accessible page works without a mouse, with limited vision and with a screen reader. Use native buttons and links, field labels, image descriptions and consistent headings.

Step by step

  1. Test with Tab. Keep focus visible. Give icon-only buttons an aria-label. Do not indicate errors using color alone.
For developers

ARIA adds semantics, but role="button" does not implement keyboard behavior. Prefer native HTML. Avoid positive tabindex for reordering focus; respect prefers-reduced-motion and text contrast.

CSS: styling

How CSS selects an element

A CSS rule contains a selector and declarations. .card matches class="card", #root matches id="root", and button matches buttons. Property panels edit the selected element rule.

Step by step

  1. Select an element in the preview and open Properties. If styling does not change, check its id, class and CSS rule. Start with one simple rule.
Code example
.card { color: #10b981; }
#root:hover { transform: translateY(-4px); }
For developers

The cascade considers origin, importance, layers, specificity and order. A later rule does not always win. Inline styles and !important can override panel changes; inherited properties differ from box properties.

Width, height and the box model

A box has content, padding, a border and margin. Its total size depends on box-sizing. min and max constrain its dimensions.

Step by step

  1. Open Properties → Layout → Size. Move a slider or enter a precise value. If text is clipped, increase height, remove fixed height or adjust overflow.
Code example
box-sizing: border-box;
width: min(100%, 360px);
padding: 24px;
For developers

content-box excludes padding and border from width; border-box includes them. Non-replaced inline elements usually ignore width and height. Flex/grid can shrink items; min-width: 0 often enables wrapping long content.

Corners and protected sliders

Sliders start disabled so scrolling a panel does not change values by accidental touch. Press the lock button before the slider you want to use.

Step by step

  1. Select an element and property.
  2. Enable its slider using the lock button.
  3. Move it or choose a dropdown value.
  4. Choose Custom value when needed.
  5. Disable the slider and save.
Code example
border-radius: 12px 24px 12px 0;
For developers

Spacing, shadow and corner limits follow element dimensions. Width and height keep a wide range. Custom input remains available.

Spacing between and inside elements

padding separates content from its edge. margin separates a box from neighbors. gap sets spacing between flex or grid items. These are different tools.

Step by step

  1. Adjust one side at a time and watch the result. Use padding for a text card and gap for button rows. Try margin-inline: auto to center a constrained-width block.
Code example
margin: 16px auto;
padding: 24px;
gap: 12px;
For developers

Vertical margins between ordinary blocks may collapse. Negative margins are valid but complicate layout. Logical inline/block properties support RTL better than fixed left/right properties.

Flex, Grid and item order

Flex works well for a row or column. Grid creates rows and columns. display chooses layout, align-items aligns across the axis, and justify-content distributes along the main Flex axis.

Step by step

  1. For multiple children, set the parent to display: flex with gap and flex-wrap: wrap. Use grid-template-columns in code for a grid. Check a narrow viewport.
Code example
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 16px;
For developers

flex-direction changes the main axis; container and item properties differ. order changes visual order but not reading or keyboard order. repeat(auto-fit, minmax(...)) is useful for responsive grids.

Position, layers and scrolling

relative offsets a box from its normal place. absolute uses a suitable ancestor. fixed attaches to the viewport; sticky holds during scrolling. z-index orders layers within a stacking context.

Step by step

  1. Start with normal flow. For an icon inside a card, give the card relative positioning and the icon absolute positioning with offsets. Check dimensions, overflow and negative offsets if scrolling is unexpected.
Code example
position: relative;
top: 8px;
z-index: 2;
For developers

transform, filter and opacity can create stacking contexts; a large z-index cannot escape its parent context. sticky needs a threshold such as top or inset and depends on the scrolling ancestor.

Colors, backgrounds and gradients

color changes text; background changes the backdrop. HEX specifies color; rgba adds transparency. A gradient blends colors. Application theme does not control your project styling.

Step by step

  1. Choose background and text colors and check readability. Reduce alpha for transparency rather than brightness. Code supports multiple backgrounds, images, and linear or radial gradients.
Code example
background: linear-gradient(135deg, #10b981, #6366f1);
color: #ffffff;
For developers

opacity affects the element and its children; background alpha affects only the backdrop. background-size: cover fills with cropping; contain preserves the whole image. Check contrast across the entire gradient.

Fonts, wrapping and alignment

Size, weight and line height affect readability. text-align aligns text within a box. font-family lists fonts; unavailable fonts fall back to the next choice.

Step by step

  1. Set font-size and line-height, then test long text. Allow wrapping. Use flex for icon-and-text layouts rather than alignment with spaces.
Code example
font-size: 1.25rem;
line-height: 1.5;
font-weight: 600;
For developers

External web fonts require loading and sometimes a network. white-space controls spacing and wrapping; overflow-wrap: anywhere helps long URLs. Unitless line-height scales with font size.

Borders and focus outlines

border occupies space around a box. outline is separate and useful for visible focus. Borders need width, style and color; color alone is insufficient.

Step by step

  1. Choose a width and solid style for a visible border. Check box-sizing. Add a contrasting outline and small outline-offset for focus-visible.
Code example
border: 1px solid #64748b;
outline: 2px solid #10b981;
outline-offset: 3px;
For developers

Do not remove outline without an equivalent keyboard focus indicator. Borders can change dimensions; outlines generally do not affect layout. Code supports border-image and pseudo-elements for complex frames.

Shadows and direction controls

A shadow adds depth. Horizontal and vertical offsets define direction, blur defines softness, and spread expands it. An alpha color makes a subtle shadow.

Step by step

  1. Open shadow settings. Move the joystick to set direction, then adjust blur, spread and color. A small soft shadow is usually clearer than a heavy black outline.
Code example
box-shadow: 8px 12px 24px 0 rgba(0, 0, 0, .25);
For developers

box-shadow supports comma-separated shadows and inset shadows. text-shadow affects text. filter: drop-shadow follows opaque image contours. A parent overflow rule can clip shadows.

Transforms, filters and opacity

transform rotates, translates and scales a box. filter alters its rendering. opacity controls transparency. These effects do not replace normal layout.

Step by step

  1. Start with a small rotate or scale. Check that text remains readable. Use translate to move a box without moving its neighbors in normal flow.
Code example
transform: rotate(3deg) scale(1.02);
filter: blur(1px);
opacity: .9;
For developers

Transform function order matters. transform-origin sets the reference point. Filters and backdrop-filter may be costly on mobile and differ in support. transform can change the coordinate system for fixed descendants.

Adapting to phones and tablets

A responsive layout adapts to width: items wrap, images shrink, and text stays readable. A large fixed-width box often causes horizontal scrolling.

Step by step

  1. Use percentages, max-width and flex-wrap. Add a viewport declaration in HTML. Use @media for narrow-screen changes and test long labels.
Code example
@media (max-width: 480px) {
  .card { width: 100%; }
}
For developers

The project is tested in the editor preview area, not the entire physical display. Logical properties support text direction. Consider safe areas, keyboards, font enlargement and reduced-motion preferences.

Interactions

Hover, press, focus and click states

States style interaction. hover means a pointer is over an element, active is the press interval, focus is input focus, focus-visible is visible keyboard focus, and focus-within matches focus inside a box.

Step by step

  1. Add a state in Properties, select it and change its styling. Test with the virtual mouse. Return to the base state before editing the normal appearance.
Code example
.card:hover { background: #6366f1; }
.card:focus-visible { outline: 2px solid #10b981; }
For developers

The editor click state uses project code rather than a standard :click CSS pseudo-class. :active is not persistent selection. Use a class, data attribute or aria-pressed with JavaScript for lasting selection.

Events and JavaScript

An event reports something happening: click, input, change, keydown and more. A handler is a function responding to it. JavaScript can change text and state, validate entry and control the page.

Step by step

  1. Choose an event and handler in a new project, or open JS. Start with a simple text change. Check selector spelling and whether the element exists.
Code example
document.querySelector('.card').addEventListener('click', () => {
  console.log('click');
});
For developers

Use addEventListener and avoid duplicate handlers on reinitialization. change and input fire at different times. Synthetic events have isTrusted=false; protected APIs can require a real user gesture.

Transitions and animation

transition interpolates a property between states. animation plays @keyframes. duration sets timing, and easing controls the movement curve.

Step by step

  1. Add transition to the base rule and transform to hover. Create @keyframes in CSS for a sequence. Make behavior work correctly before adding movement.
Code example
transition: transform .2s ease, background-color .2s ease;
For developers

Not all properties interpolate. transform and opacity are usually good choices. Avoid continuously animating large regions; respect prefers-reduced-motion. transition: all can affect unexpected properties.

Virtual mouse: joystick and scrolling

The virtual mouse helps test hover and presses on a touch screen. A joystick moves the pointer, buttons simulate left and right presses, and a strip controls scrolling.

Step by step

  1. Press Mouse at the bottom of the editor. Hold the joystick in the movement direction and release to stop. Drag on the scroll strip. Move over a project button and press the left button.
For developers

The pointer operates inside the project area. Scrolling targets a suitable scroll container. This is a testing tool: protected browser APIs, system menus, file pickers and trusted-event behavior can differ from a real mouse.

Keyboard and focus

Focus identifies the element receiving input. Tab normally moves between controls, Enter activates links or buttons, and Space activates buttons or checkboxes. Text entry belongs in fields.

Step by step

  1. Check project focus and use the available virtual-mouse input controls. With a physical keyboard, test Tab, Shift+Tab and Enter. Keep a visible focus indicator.
For developers

dispatchEvent does not fully reproduce a key default action. Virtual input is not complete operating-system emulation. Custom JavaScript must handle keyboard behavior where native HTML does not provide it.

Project workflow

Editing source and using property panels

The code editor gives full file control. Highlighting helps read syntax but does not guarantee correctness. Property panels offer convenient edits to the same source.

Step by step

  1. In Code, select HTML, CSS or JS. Edits save automatically; watch for an error message. After major manual edits, check the preview and select the desired element again.
For developers

Unusual selectors, complex CSS expressions, external dependencies and dynamic markup may not be fully represented by panels. Edit them directly in source. Projects run in an isolated preview; highlighting does not execute code.

ZIP with source and assets

Export includes saved index.html, styles.css, script.js and project assets. Pictures, video, audio and documents remain in their corresponding folders.

Step by step

  1. Save and apply first.
  2. Choose Export or Share in the top bar.
  3. Complete the rewarded advertisement.
  4. Save the archive or use the system share menu.
For developers

Folder structure and relative paths are preserved. External resources are not downloaded automatically. Website hosting and form server processing are separate.

Theme, language and editor background

Application settings control DivMaster chrome. Theme changes panels and buttons, language changes labels, and editor background changes the workspace. They do not rewrite project styles.

Step by step

  1. Open Settings from the menu, choose values and save. If saving fails, read the message and retry. On Android, additional translations depend on installed language resources.
For developers

Russian and English are bundled. Additional Google Play automatic translations depend on publication configuration, not merely uploading an AAB. System theme follows the device light or dark setting.

Project storage, ads and support

Projects reside in application data. DivMaster contains advertising; the advertising service may process device data under its privacy policy. Your project code may contact addresses you specify.

Step by step

  1. Open About for the website, email and privacy policy. Where privacy choices are required, use the available advertising privacy button. Do not include secrets in source you intend to share.
For developers

Uninstalling can remove projects; Android backup depends on device settings. Review ZIP files for personal data and keys before sharing. Include version and reproduction steps when contacting the developer, but do not send passwords.

Troubleshooting

Why the preview is blank

A blank preview can be normal for metadata tags. Visible elements may lack content, size or contrasting colors. HTML, CSS or JavaScript errors can also hide the result.

Step by step

  1. Check content, display, visibility, opacity and size. In HTML, check that visible content is inside body. Revert the last edit and compare. For images, check the URL and network access.
For developers

Review structure, CSS/JS references and initialization order. A dynamic script can clear the DOM. iframe sites can block embedding. Restarting the app does not repair saved source errors.

A property has no effect or behaves differently

The cause may be the tag, another CSS rule, an invalid unit or a browser restriction. Not every property applies to every element. An ordinary span handles width differently from a block div.

Step by step

  1. Check the selected element and state. Inspect the CSS rule and HTML inline styles. Try a simple value and remove conflicting declarations. Make sure you pressed Apply before reopening.
For developers

Cascade, min/max constraints, flex-shrink, intrinsic sizes, replaced elements and custom scripts can affect results. Experimental HTML/CSS support depends on Android System WebView and the Windows browser. Test exports in target browsers.

Glossary: tag, element, DOM and selector

A tag is notation inside angle brackets. An element is a page part with attributes and content. DOM is the page tree in browser memory. A selector finds elements for CSS or JS. An attribute configures HTML; a CSS property configures appearance.

Step by step

  1. Search the handbook for unfamiliar terms. Compare source and preview: an HTML class matches a dot selector in CSS, and an id matches a hash selector.
For developers

Viewport is the available viewing area, a breakpoint changes layout conditions, cascade resolves CSS conflicts, an event reports an interaction, a handler responds, and a pseudo-class describes a state. A sandbox limits executed project capabilities.

HTML element reference

These elements are available for new projects. Search matches tags, names and attributes. Choose elements by purpose: a button performs an action, a link opens a location, and a heading introduces a section.

<a>Link

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

href — Destination or linked resource URL; relative addresses resolve against the current page.

target — Browsing context for a link or form response, such as _self or _blank.

download — Suggests downloading the link and optionally a filename; cross-origin behavior can be restricted.

ping — URLs notified when a link is followed. Use only for a clear need with privacy implications understood.

rel — Relationship to the linked resource, such as stylesheet, noopener or external.

hreflang — Language of the linked document, such as ru or en; it does not translate the document.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

referrerpolicy — Controls which referrer information is sent during a request or navigation.

no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<abbr>Abbreviation

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<address>Contact information

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<area>Image map area

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

alt — Text alternative for an image. Explain its meaning; use an empty value for decoration.

coords — Coordinates of an area hotspot; format depends on shape.

shape — Hotspot shape: rectangle, circle, polygon or default region.

rect, circle, poly, default

href — Destination or linked resource URL; relative addresses resolve against the current page.

target — Browsing context for a link or form response, such as _self or _blank.

download — Suggests downloading the link and optionally a filename; cross-origin behavior can be restricted.

ping — URLs notified when a link is followed. Use only for a clear need with privacy implications understood.

rel — Relationship to the linked resource, such as stylesheet, noopener or external.

referrerpolicy — Controls which referrer information is sent during a request or navigation.

no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<article>Article

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<aside>Aside

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<audio>Audio

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

src — URL of an image, script, media resource or embedded page to load.

crossorigin — Resource CORS mode: anonymous or credentialed; the server must permit the request.

anonymous, use-credentials

preload — Hints whether and how much media should be preloaded.

none, metadata, auto

autoplay — Requests automatic playback; sound and lack of a user gesture can block it.

loading — Image or iframe loading mode: eager or deferred until near the viewport.

lazy, eager

loop — Repeats media after it ends.

muted — Starts media muted.

controls — Shows built-in media playback controls.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<b>Attention text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<base>Base URL

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

href — Destination or linked resource URL; relative addresses resolve against the current page.

target — Browsing context for a link or form response, such as _self or _blank.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<bdi>Direction isolation

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<bdo>Direction override

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<blockquote>Block quotation

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

cite — Source URL for a quotation or explanation of a text change.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<body>Document body

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<br>Line break

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<button>Button

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

command — Button command for an associated element; experimental values need browser support.

commandfor — ID of the element receiving a button command.

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

form — ID of the form associated with a control, even outside its DOM subtree.

formaction — Overrides the form action for this submit control.

formenctype — Overrides form data encoding for this submit control.

application/x-www-form-urlencoded, multipart/form-data, text/plain

formmethod — Overrides the form submission method for this control.

get, post, dialog

formnovalidate — Skips built-in form validation when submitting with this control.

formtarget — Overrides the response browsing context for this submit control.

name — Field name in submitted form data or metadata name; distinct from id.

popovertarget — ID of the popover controlled by a button.

popovertargetaction — Popover action: show, hide or toggle.

toggle, show, hide

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

value — Initial control, option or gauge value. textarea uses text between its tags.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<canvas>Canvas

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<caption>Table caption

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<cite>Work title

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<code>Code fragment

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<col>Table column

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

span — Number of columns represented by col or colgroup.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<colgroup>Column group

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

span — Number of columns represented by col or colgroup.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<data>Machine-readable data

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

value — Initial control, option or gauge value. textarea uses text between its tags.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<datalist>Input suggestions

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<dd>Term description

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<del>Deleted text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

cite — Source URL for a quotation or explanation of a text change.

datetime — Machine-readable date or time; visible text is supplied separately.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<details>Disclosure

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

name — Field name in submitted form data or metadata name; distinct from id.

open — Initially opens details or dialog; a modal dialog requires JavaScript showModal().

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<dfn>Defined term

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<dialog>Dialog

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

open — Initially opens details or dialog; a modal dialog requires JavaScript showModal().

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<div>Block

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<dl>Description list

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<dt>Term

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<em>Emphasis

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<embed>Embedded resource

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

src — URL of an image, script, media resource or embedded page to load.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<fieldset>Field group

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

form — ID of the form associated with a control, even outside its DOM subtree.

name — Field name in submitted form data or metadata name; distinct from id.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<figcaption>Figure caption

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<figure>Figure

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<footer>Footer

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<form>Form

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

accept-charset — Form submission encoding; use UTF-8 for modern pages.

action — Server URL receiving a form submission; the server must exist separately.

autocomplete — Hints the field purpose and whether browser autofill is permitted.

enctype — Form data encoding; file uploads normally require multipart/form-data.

application/x-www-form-urlencoded, multipart/form-data, text/plain

method — Form submission method, usually get for a query or post for data.

get, post, dialog

name — Field name in submitted form data or metadata name; distinct from id.

novalidate — Disables built-in validation on submission; validate data on the server.

rel — Relationship to the linked resource, such as stylesheet, noopener or external.

target — Browsing context for a link or form response, such as _self or _blank.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<h1>Heading 1

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<h2>Heading 2

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<h3>Heading 3

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<h4>Heading 4

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<h5>Heading 5

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<h6>Heading 6

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<head>Document metadata

This is a paired element: opening and closing tags enclose its permitted content.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<header>Header

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<hgroup>Heading group

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<hr>Thematic break

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<html>HTML document

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<i>Alternate voice

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<iframe>Embedded page

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

src — URL of an image, script, media resource or embedded page to load.

srcdoc — Embedded iframe HTML supplied directly as an attribute.

name — Field name in submitted form data or metadata name; distinct from id.

sandbox — iframe restrictions; grant only necessary sandbox exceptions.

allow — iframe permissions policy; it cannot bypass parent or browser restrictions.

allowfullscreen — Allows an iframe to request fullscreen when browser requirements are met.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

referrerpolicy — Controls which referrer information is sent during a request or navigation.

no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url

loading — Image or iframe loading mode: eager or deferred until near the viewport.

lazy, eager

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<img>Image

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

alt — Text alternative for an image. Explain its meaning; use an empty value for decoration.

src — URL of an image, script, media resource or embedded page to load.

srcset — Image candidates with width or density descriptors for browser selection.

sizes — Conditions and expected image width used when selecting a srcset candidate.

crossorigin — Resource CORS mode: anonymous or credentialed; the server must permit the request.

anonymous, use-credentials

usemap — A #id reference to a map defining image hotspots.

ismap — Marks a server-side image map inside a link; coordinates are sent to the server.

controls — Shows built-in media playback controls.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

referrerpolicy — Controls which referrer information is sent during a request or navigation.

no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url

decoding — Hints synchronous or asynchronous image decoding.

sync, async, auto

loading — Image or iframe loading mode: eager or deferred until near the viewport.

lazy, eager

fetchpriority — Hints relative fetch priority; the browser decides the final behavior.

high, low, auto

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<input>Input

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

accept — Suggested file types for selection; a picker hint, not reliable validation.

alpha — Enables transparency in a supported color input.

alt — Text alternative for an image. Explain its meaning; use an empty value for decoration.

autocomplete — Hints the field purpose and whether browser autofill is permitted.

checked — Initial checked state of checkbox or radio. Presence means enabled.

colorspace — Color input color space; extended spaces depend on browser support.

limited-srgb, display-p3

dirname — Adds a form entry reporting text direction on submission.

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

form — ID of the form associated with a control, even outside its DOM subtree.

formaction — Overrides the form action for this submit control.

formenctype — Overrides form data encoding for this submit control.

application/x-www-form-urlencoded, multipart/form-data, text/plain

formmethod — Overrides the form submission method for this control.

get, post, dialog

formnovalidate — Skips built-in form validation when submitting with this control.

formtarget — Overrides the response browsing context for this submit control.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

list — ID of a datalist supplying suggestions for a compatible input.

max — Upper bound for a number, date, range or progress; format depends on type.

maxlength — Maximum text length in a supported text control.

min — Lower bound for a number, date, range or gauge; format depends on type.

minlength — Minimum text length in a supported text control.

multiple — Allows multiple options, files or addresses in compatible controls.

name — Field name in submitted form data or metadata name; distinct from id.

pattern — Regular expression validating the entire value of a supported text control.

placeholder — Brief hint in an empty field; it does not replace label.

popovertarget — ID of the popover controlled by a button.

popovertargetaction — Popover action: show, hide or toggle.

toggle, show, hide

readonly — Allows reading and usually focus, but prevents editing in supported controls.

required — The field must be filled for normal form submission; browser validation does not replace server validation.

size — Visible select option count or expected width of a compatible input.

src — URL of an image, script, media resource or embedded page to load.

step — Allowed value increment relative to a step base; any permits unrestricted steps where supported.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

value — Initial control, option or gauge value. textarea uses text between its tags.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

hidden, text, search, tel, url, email, password, date, month, week, time, datetime-local, number, range, color, checkbox, radio, file, submit, image, reset, button

The input type determines which attributes apply. For example, checked applies to checkbox and radio; min, max and step apply to compatible numeric, date and other types. Review the resulting HTML after changing the type.

<ins>Inserted text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

cite — Source URL for a quotation or explanation of a text change.

datetime — Machine-readable date or time; visible text is supplied separately.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<kbd>Keyboard input

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<label>Control label

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

for — Associated control ID for label, or input element IDs for output.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<legend>Field group caption

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<li>List item

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

value — Initial control, option or gauge value. textarea uses text between its tags.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<link>Linked resource

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

href — Destination or linked resource URL; relative addresses resolve against the current page.

crossorigin — Resource CORS mode: anonymous or credentialed; the server must permit the request.

anonymous, use-credentials

rel — Relationship to the linked resource, such as stylesheet, noopener or external.

as — Destination of a preloaded link resource, such as image, style or script.

media — Media condition for using a resource, such as (max-width: 600px).

hreflang — Language of the linked document, such as ru or en; it does not translate the document.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

sizes — Conditions and expected image width used when selecting a srcset candidate.

imagesrcset — Image candidates for a preload link, corresponding to img srcset.

imagesizes — Image sizes for a preload link, corresponding to img sizes.

referrerpolicy — Controls which referrer information is sent during a request or navigation.

no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url

integrity — Cryptographic digest verifying a fetched resource. It must match the file exactly.

blocking — Declares operations the resource may block; supported values depend on the browser.

color — Color on a tag supporting this attribute; use CSS color for ordinary text.

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

fetchpriority — Hints relative fetch priority; the browser decides the final behavior.

high, low, auto

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<main>Main content

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<map>Image map

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

name — Field name in submitted form data or metadata name; distinct from id.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<mark>Highlighted text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<math>MathML formula

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

display — Display mode for MathML or another supported tag; distinct from CSS display.

block, inline

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<menu>Menu list

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<meta>Metadata

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

name — Field name in submitted form data or metadata name; distinct from id.

http-equiv — meta document directive, such as content-security-policy.

content — Metadata value in meta; meaning depends on name or http-equiv.

charset — Document character encoding; use UTF-8.

media — Media condition for using a resource, such as (max-width: 600px).

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<meter>Gauge

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

value — Initial control, option or gauge value. textarea uses text between its tags.

min — Lower bound for a number, date, range or gauge; format depends on type.

max — Upper bound for a number, date, range or progress; format depends on type.

low — Threshold for the low meter region within min and max.

high — Threshold for the high meter region within min and max.

optimum — Preferred meter value used to evaluate its range.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<nav>Navigation

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<noscript>Content without JavaScript

This is a paired element: opening and closing tags enclose its permitted content.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<object>Embedded object

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

data — Resource URL embedded by object; supported formats depend on the browser.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

name — Field name in submitted form data or metadata name; distinct from id.

form — ID of the form associated with a control, even outside its DOM subtree.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<ol>Ordered list

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

reversed — Reverses ordered-list numbering.

start — Starting number for an ordered list.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<optgroup>Option group

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

label — Label for an option, option group or text track.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<option>Option

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

label — Label for an option, option group or text track.

selected — Initial selected state of an option in a select list.

value — Initial control, option or gauge value. textarea uses text between its tags.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<output>Calculation result

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

for — Associated control ID for label, or input element IDs for output.

form — ID of the form associated with a control, even outside its DOM subtree.

name — Field name in submitted form data or metadata name; distinct from id.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<p>Paragraph

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<picture>Responsive picture

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<pre>Preformatted text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<progress>Progress indicator

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

value — Initial control, option or gauge value. textarea uses text between its tags.

max — Upper bound for a number, date, range or progress; format depends on type.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<q>Inline quotation

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

cite — Source URL for a quotation or explanation of a text change.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<rp>Ruby fallback parentheses

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<rt>Ruby annotation

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<ruby>Annotated text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<s>No longer accurate text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<samp>Sample output

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<script>Script

This is a paired element: opening and closing tags enclose its permitted content.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

src — URL of an image, script, media resource or embedded page to load.

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

nomodule — Runs a classic script only in browsers without module support.

async — Allows script execution when loaded without preserving normal script order.

defer — Defers a classic external script until document parsing finishes.

crossorigin — Resource CORS mode: anonymous or credentialed; the server must permit the request.

anonymous, use-credentials

integrity — Cryptographic digest verifying a fetched resource. It must match the file exactly.

referrerpolicy — Controls which referrer information is sent during a request or navigation.

no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url

blocking — Declares operations the resource may block; supported values depend on the browser.

fetchpriority — Hints relative fetch priority; the browser decides the final behavior.

high, low, auto

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<search>Search region

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<section>Section

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<select>Select control

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

autocomplete — Hints the field purpose and whether browser autofill is permitted.

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

form — ID of the form associated with a control, even outside its DOM subtree.

multiple — Allows multiple options, files or addresses in compatible controls.

name — Field name in submitted form data or metadata name; distinct from id.

required — The field must be filled for normal form submission; browser validation does not replace server validation.

size — Visible select option count or expected width of a compatible input.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<selectedcontent>Selected option content

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<slot>Component slot

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

name — Field name in submitted form data or metadata name; distinct from id.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<small>Side comment

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<source>Media source

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

type — Input or button type, or resource MIME type. Values and applicable settings depend on the tag.

media — Media condition for using a resource, such as (max-width: 600px).

src — URL of an image, script, media resource or embedded page to load.

srcset — Image candidates with width or density descriptors for browser selection.

sizes — Conditions and expected image width used when selecting a srcset candidate.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<span>Text span

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<strong>Important text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<style>Style sheet

This is a paired element: opening and closing tags enclose its permitted content.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

media — Media condition for using a resource, such as (max-width: 600px).

blocking — Declares operations the resource may block; supported values depend on the browser.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<sub>Subscript

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<summary>Disclosure heading

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<sup>Superscript

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<svg>SVG vector graphics

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

viewBox — SVG coordinate system: min-x, min-y, width, height. Enables scaling.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

preserveAspectRatio — Rule preserving SVG aspect ratio inside its viewport.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<table>Table

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<tbody>Table body

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<td>Table cell

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

colspan — Number of table columns occupied by a cell.

rowspan — Number of table rows occupied by a cell.

headers — IDs of table headers associated with the cell.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<template>HTML template

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

for — Associated control ID for label, or input element IDs for output.

shadowrootmode — Declarative Shadow DOM mode on template: open or closed.

open, closed

shadowrootdelegatesfocus — Delegates focus inside a declarative shadow root.

shadowrootserializable — Allows supported APIs to serialize the shadow root.

shadowrootslotassignment — Shadow-root slot assignment mode; requires browser support.

named, manual

shadowrootclonable — Allows cloning a declarative shadow root.

shadowrootcustomelementregistry — Scoped custom element registry setting for a shadow root; requires modern support.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<textarea>Text area

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

autocomplete — Hints the field purpose and whether browser autofill is permitted.

cols — Expected textarea width in characters; CSS can override it.

dirname — Adds a form entry reporting text direction on submission.

disabled — Disables supported controls; disabled form fields are normally omitted from submission.

form — ID of the form associated with a control, even outside its DOM subtree.

maxlength — Maximum text length in a supported text control.

minlength — Minimum text length in a supported text control.

name — Field name in submitted form data or metadata name; distinct from id.

placeholder — Brief hint in an empty field; it does not replace label.

readonly — Allows reading and usually focus, but prevents editing in supported controls.

required — The field must be filled for normal form submission; browser validation does not replace server validation.

rows — Visible textarea row count, not a limit on text length.

wrap — Controls textarea wrapping and whether wraps are included in submitted data.

soft, hard

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<tfoot>Table footer

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<th>Header cell

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

colspan — Number of table columns occupied by a cell.

rowspan — Number of table rows occupied by a cell.

headers — IDs of table headers associated with the cell.

scope — Associates a th header with a row, column or group.

row, col, rowgroup, colgroup

abbr — Abbreviated label for a table header cell.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<thead>Table head

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<time>Date and time

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

datetime — Machine-readable date or time; visible text is supplied separately.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<title>Document title

This is a paired element: opening and closing tags enclose its permitted content.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<tr>Table row

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<track>Text track

This is a void element: it has no closing tag or inner text.

This element supplies structure or data and may not have a separate visible box. An absent rectangle in the preview is not necessarily an error.

Attributes for this element

default — Suggests this track as the default one.

kind — Purpose of a track, such as subtitles or captions.

subtitles, captions, descriptions, chapters, metadata

label — Label for an option, option group or text track.

src — URL of an image, script, media resource or embedded page to load.

srclang — Language of a text track, such as ru or en.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<u>Annotated text

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<ul>Unordered list

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<var>Variable

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<video>Video

This is a paired element: opening and closing tags enclose its permitted content.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

src — URL of an image, script, media resource or embedded page to load.

crossorigin — Resource CORS mode: anonymous or credentialed; the server must permit the request.

anonymous, use-credentials

poster — Video image displayed before playback starts.

preload — Hints whether and how much media should be preloaded.

none, metadata, auto

autoplay — Requests automatic playback; sound and lack of a user gesture can block it.

playsinline — Requests inline video playback rather than forced fullscreen.

loading — Image or iframe loading mode: eager or deferred until near the viewport.

lazy, eager

loop — Repeats media after it ends.

muted — Starts media muted.

controls — Shows built-in media playback controls.

width — Intrinsic width in CSS pixels on supported tags; CSS can override it.

height — Intrinsic height in CSS pixels on supported tags; CSS can override it.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

<wbr>Optional line break

This is a void element: it has no closing tag or inner text.

This element can have a visible box. Its size, appearance and position depend on CSS and the browser rules for its tag.

Attributes for this element

This tag has no specific attributes. Global attributes are available.

Global attributes: id supplies a unique identifier, class groups elements for CSS, title supplies a hint, lang declares language, and dir declares text direction. data-* stores custom data. ARIA supplements accessibility but does not replace a suitable HTML element.

Global attributes and ARIA accessibility

These settings are available independently of the selected tag. ARIA must match actual behavior and the element permitted role. Prefer preserving native HTML semantics.

accesskey

Suggests an element keyboard shortcut; the actual combination depends on the platform.

autocapitalize

Hints automatic text capitalization during entry.

autocorrect

Hints whether automatic input correction should be used.

autofocus

Requests focus when shown; use carefully to avoid unexpected focus movement.

class

Space-separated CSS class names; a class can apply to multiple elements.

contenteditable

Allows browser content editing; DOM changes do not automatically save the project file.

dir

Text direction: ltr, rtl or auto.

draggable

Indicates drag capability; actions must be handled in JavaScript.

enterkeyhint

Hints the label or action of the on-screen Enter key.

headingoffset

Offsets computed descendant heading levels; check browser support.

headingreset

Resets inherited heading offsets; check browser support.

hidden

Hides content; hidden="false" does not make it visible.

id

Unique element identifier for links, labels, CSS and JavaScript.

inert

Removes a subtree from interaction and normal focus, useful behind modal dialogs.

inputmode

Hints the on-screen keyboard type but does not validate entry.

is

Registered customized built-in element name; it needs JavaScript registration.

itemid

Global identifier of a microdata item.

itemprop

Microdata property name.

itemref

IDs of additional elements providing microdata properties.

itemscope

Declares a microdata item scope.

itemtype

Schema URL defining the microdata item type.

lang

Content language for reading, hyphenation and speech; it does not translate text.

nonce

Unique value matched against a CSP policy to authorize inline code; it is not a standalone security measure.

popover

Declares a popover controlled by a button or the Popover API.

slot

Slot name assigning an element within a web component.

spellcheck

Hints whether spell checking should be enabled.

style

Inline CSS declarations that can override rules in styles.css.

tabindex

Focus behavior: 0 joins normal navigation; -1 allows programmatic focus.

title

Supplementary text hint; it does not replace a visible label and may not work on touch screens.

translate

Indicates whether page translation tools should translate content.

writingsuggestions

Hints whether writing suggestions should be enabled; support depends on the browser.

role

Accessible semantic role; it does not add keyboard behavior.

aria-label

Element name for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-labelledby

IDs providing the name for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-describedby

IDs providing the description for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-hidden

Exclusion from the accessibility tree for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-expanded

Expanded state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-live

Announcement mode for changes for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-controls

Controlled region IDs for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-current

Current item or step for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-disabled

Unavailable action state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-checked

Checked state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-selected

Selected state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-valuemin

Minimum value for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-valuemax

Maximum value for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-valuenow

Current numeric value for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-valuetext

Text explanation of a value for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-required

Required input state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-invalid

Invalid value state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-modal

Modal dialog state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-busy

Updating region state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-haspopup

Presence and type of popup for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-pressed

Toggle button state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-orientation

Element orientation for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-level

Hierarchy level for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-posinset

Position in a set for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-setsize

Set size for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-roledescription

Readable role description for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-details

Detailed-information region ID for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-errormessage

Error message element ID for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-keyshortcuts

Declared keyboard shortcuts for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-multiselectable

Multiple-selection support for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-readonly

Read-only state for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-sort

Sort direction for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-atomic

Whole-region announcement for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-relevant

Announced change types for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-activedescendant

Active descendant ID for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-autocomplete

Input suggestion mode for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-colcount

Total column count for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-colindex

Column index for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-colspan

Column span for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-rowcount

Total row count for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-rowindex

Row index for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-rowspan

Row span for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-description

Text description for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-braillelabel

Braille label for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

aria-brailleroledescription

Braille role description for assistive technology. Keep it consistent with actual state; the attribute does not implement behavior.

Event catalog

The new-project wizard offers these events. Choose by interaction: click for activation, input for each field edit, change for a committed change, and keydown for a key. addEventListener names omit on. Catalog inclusion does not mean every event fires on every tag; support and meaning depend on the element and browser.

auxclick, beforeinput, beforematch, beforetoggle, blur, cancel, canplay, canplaythrough, change, click, close, command, contextlost, contextmenu, contextrestored, copy, cuechange, cut, dblclick, drag, dragend, dragenter, dragleave, dragover, dragstart, drop, durationchange, emptied, ended, error, focus, formdata, input, invalid, keydown, keypress, keyup, load, loadeddata, loadedmetadata, loadstart, mousedown, mouseenter, mouseleave, mousemove, mouseout, mouseover, mouseup, paste, pause, play, playing, progress, ratechange, reset, resize, scroll, scrollend, securitypolicyviolation, seeked, seeking, select, slotchange, stalled, submit, suspend, timeupdate, toggle, volumechange, waiting, wheel