๐๏ธ๐ท๏ธ Ethan's HTML Attribute Reference
Here's every HTML attribute. Or at least the vast majority of them, though of course custom things will not be included. You get to sort and filter them and look them up by different characteristics. I tried to be as accurate as possible; this is the same dataset that the HTML Attribute Analyzer uses, and after I had made that, I figured why not make something like this too? I hope you find it useful--nobody really thinks about HTML attributes very much.
abbr text
Provides an abbreviated label for a table header cell.
Provides an abbreviated form of a table header's content in older table models. It was intended to give user agents a shorter label for repeated or compact presentation, but it is rarely used in modern HTML.
accent boolean-like
Indicates whether an operator or script should be treated as an accent.
Indicates in MathML whether an over- or under-script should be treated as an accent. This can affect spacing and script sizing.
accent-height number
Historically specifies the distance from the font origin to the top of accent characters in an SVG font.
accentunder boolean-like
Indicates whether an underscript should be treated as an accent.
Indicates whether an underscript in MathML should be treated as an accent. It is mainly relevant to munder and munderover layout.
accept comma-separated tokens
Specifies accepted input or upload types.
Specifies which file or media types are acceptable for a control, most commonly an input with type="file". Its value is a comma-separated list of MIME types, filename extensions, or broad media categories such as image/*.
accept-charset enumerated/text
Specifies the character encoding used for form submission.
Specifies the character encoding to use when a form is submitted. In modern HTML, UTF-8 is the expected encoding, so this attribute has far less practical variety than it once did.
accesskey space-separated characters
Provides a keyboard shortcut hint for activating or focusing an element.
Assigns a keyboard shortcut hint to an element. The actual key combination depends on the browser and operating system, so authors should not assume one universal shortcut sequence.
accumulate enumerated
Controls whether animation values accumulate across repeated iterations.
action URL
Specifies the URL that processes a submitted form.
Sets the URL that receives a form submission. It is used on form and can be overridden for individual submit controls with formaction.
actiontype text / enumerated
Specifies the action behavior of a legacy MathML maction element.
additive enumerated
Controls whether an animation adds to or replaces the underlying value.
align enumerated
Historically controls element alignment in HTML and is also used in some MathML table contexts.
Historically controlled horizontal or vertical alignment on elements such as images, tables, rows, cells, captions, and horizontal rules. Modern documents use CSS for alignment instead, but the attribute still appears frequently in older HTML and email markup.
alignment-baseline enumerated / CSS value
Specifies how an element is aligned relative to the dominant baseline.
alink color
Historically sets the color of active hyperlinks on the body element.
Historically set the color used for an active link, usually on body. CSS pseudo-classes such as :active replaced this document-wide presentational setting.
allow permissions-policy list
Specifies permissions policy features allowed for an iframe.
Sets a Permissions Policy for an iframe, controlling which browser features the embedded document may use. Common feature names include camera, microphone, geolocation, fullscreen, and autoplay.
allowfullscreen boolean
Allows an iframe's content to request fullscreen presentation; a legacy alias for an appropriate Permissions Policy.
Allows an iframe to enter fullscreen mode when requested by its contents. Modern permissions handling overlaps with the allow attribute, but allowfullscreen remains widely encountered in embed code.
allowpaymentrequest boolean
Legacy iframe attribute allowing the Payment Request API in a cross-origin frame.
Was used on iframe to allow the embedded document to use the Payment Request API. The feature was folded into Permissions Policy behavior and the dedicated attribute is obsolete.
allowtransparency boolean-like
Historically allowed iframe backgrounds to appear transparent in Internet Explorer.
allowusermedia boolean
Legacy Chromium iframe attribute used before Permissions Policy to allow camera or microphone access.
alpha boolean
Allows alpha transparency in a color input where supported.
Allows a color input to accept an alpha channel in addition to the color itself. It is associated with newer color-input behavior and may not be supported uniformly across browsers.
alphabetic number
Historically specifies the alphabetic baseline position in an SVG font.
alt text
Provides alternative text for images and certain image-based controls.
Provides a text alternative for an image or image-like control. It is especially important on img, where the value should communicate the image's purpose or content when the image is unavailable or nonvisual access is being used.
amplitude number
Sets the amplitude of the gamma function used by a component transfer filter.
anchor ID reference
Associates a positioned element with an anchor element for CSS anchor positioning.
arabic-form enumerated
Historically identifies the positional form of an Arabic glyph in an SVG font.
archive space-separated URLs
Historically specified archives associated with an applet or object.
Historically listed archives containing resources needed by an embedded Java applet or object. It belongs to the old plugin and applet model rather than modern browser resource loading.
aria-* varies
Family of ARIA states and properties used to describe accessibility semantics.
Represents the family of ARIA state and property attributes used to expose accessibility information. Specific members such as aria-label, aria-expanded, aria-controls, and aria-live have distinct rules and should be used according to the element's allowed accessibility semantics.
as enumerated token
Specifies the expected resource type for a preload or related link.
Tells the browser what type of resource a link is expected to fetch, particularly with rel values such as preload. Values such as script, style, image, font, and fetch help the browser apply the correct loading behavior and security rules.
ascent number
Historically specifies the maximum unaccented height of an SVG font.
async boolean
Allows a script to execute asynchronously when available.
Makes an external script load independently of HTML parsing and execute as soon as it is ready. Because execution order is not preserved among ordinary async scripts, it is best suited to scripts that do not depend on one another.
attributeName attribute name
Names the attribute or property targeted by an SVG animation.
Names the SVG attribute or property targeted by an animation element such as animate. The animation changes that named value over its active duration.
attributeType enumerated
Historically specifies the namespace/type of an animated attribute.
Historically indicated whether an SVG animation target was an XML attribute or CSS property. Modern SVG processing largely infers this and the attribute is considered obsolete in newer specifications.
attributionsrc boolean-like / space-separated URLs
Requests Attribution Reporting registration for a navigation or resource request.
autocapitalize enumerated
Controls automatic capitalization of user-entered text.
Controls automatic capitalization behavior in editable text, especially on mobile keyboards. It can request behavior such as no capitalization, sentence capitalization, word capitalization, or character capitalization.
autocomplete enumerated / token list
Controls or hints browser autofill behavior.
Controls whether and how browsers may autofill form fields. Beyond simple on and off values, it supports tokens such as name, email, postal-code, current-password, and one-time-code that tell the browser what kind of information a control expects.
autocorrect enumerated
Controls automatic correction of editable text.
autofocus boolean
Requests that an element receive focus automatically.
Requests that an element receive focus automatically when the page or dialog becomes active. It is most often used on form controls, though automatically moving focus can be disruptive if used without a clear reason.
autolocate boolean
Requests immediate location retrieval when a geolocation element is rendered and permission was previously granted.
autoplay boolean
Requests automatic playback of media.
Requests that audio or video begin playing automatically when possible. Browsers commonly restrict autoplay, especially when sound is enabled, so the attribute should not be treated as a guarantee that playback will start.
autosave text
Legacy WebKit attribute naming saved search suggestions for a search input.
axes comma-separated names
Experimental RFC 1942 table-cell attribute listing axis names associated with a cell; superseded by later table accessibility mechanisms.
axis comma-separated names
Historically categorized table cells along conceptual axes.
Was used on table cells to place them into conceptual categories that could help describe multidimensional table data. The attribute never became a common authoring tool and is obsolete in modern HTML.
azimuth number / angle
Specifies the horizontal direction of a distant light source.
background URL
Historically specifies a background image URL on body and table-related elements.
Historically set a background image URL directly on elements such as body or table cells. CSS background-image replaced this presentational attribute for normal web authoring.
baseFrequency number / number pair
Sets the base frequency used to generate turbulence noise.
Controls the base frequency of procedural noise generated by feTurbulence. One or two numbers set the horizontal and vertical frequency of the noise pattern.
baseline-shift length / percentage / keyword
Shifts an element's dominant baseline relative to its parent.
baseProfile text
Declares the minimum SVG language profile required by a document.
bbox number list
Historically specifies the bounding box of an SVG font face.
begin timing value / list
Specifies when an SVG animation begins.
Sets when an SVG SMIL animation begins. It can use clock values, event-based triggers, or references to other animation timings.
behavior enumerated
Controls the scrolling behavior of the non-standard marquee element.
bgcolor color
Historically specifies an element's background color.
Historically set an element's background color, commonly on body, tables, rows, and cells. It remains common in legacy HTML and email templates, where old rendering engines sometimes still influence authoring choices.
bias number
Adds a constant bias to each component of a convolution filter result.
blocking space-separated tokens
Specifies operations, such as rendering, that may be blocked while an external resource is fetched.
Hints that certain rendering or execution work should block a particular processing stage, such as rendering. It is a newer low-level loading-control attribute used on a small set of elements including script, style, and link.
border integer / keyword
Historically specifies a border width on certain HTML elements; legacy presentational markup superseded by CSS.
Historically controlled the visible border around elements such as tables, images, and objects. CSS now handles border styling, though old markup frequently contains numeric border values and img border="0" was once a common way to suppress link-image borders.
bordercolor color
Historically specifies the color of table or frame borders.
Was a proprietary or legacy presentational attribute for setting border color on tables and other elements. CSS border-color is the modern mechanism.
bottommargin integer
Historically sets the bottom body margin in pixels.
browsingtopics boolean
Requests that selected Topics API interests be sent with an iframe request.
Requests participation in the browser's Topics advertising API on supported requests. It is privacy-sandbox-related and far more specialized than ordinary resource-loading attributes.
by value
Specifies a relative offset value for an SVG animation.
calcMode enumerated
Specifies the interpolation mode used by an SVG animation.
Controls how values are interpolated in an SVG animation. Modes include discrete, linear, paced, and spline interpolation.
cap-height number
Historically specifies the height of uppercase glyphs in an SVG font.
capture enumerated / boolean-like
Hints that file input should use a device capture mechanism.
Hints that a file input should capture new media using a device camera or microphone instead of only selecting an existing file. It is generally paired with accept on input type="file" and is most relevant on mobile devices.
cellpadding length
Historically specifies padding inside table cells.
Historically set the amount of space between a table cell's content and its border. CSS padding on td and th provides the modern equivalent.
cellspacing length
Historically specifies spacing between table cells.
Historically set the amount of space between adjacent table cells. Modern table spacing is controlled with CSS properties such as border-spacing and border-collapse.
char character
Historically specifies the alignment character for table columns or cells.
Historically identified a character used to align table-cell contents, such as a decimal point. It was tied to old table alignment features and is no longer used in modern HTML authoring.
charoff length / number
Historically specifies an offset from the alignment character in a table.
Historically adjusted alignment relative to the character specified by char in table-related elements. It is an obsolete table-formatting attribute with little relevance to current browser layout.
charset encoding label
Declares a character encoding in contexts where the attribute remains valid.
Declares a character encoding in contexts where the attribute is defined, most notably meta. Older HTML also allowed charset on several linking and scripting elements, uses that are now obsolete.
checked boolean
Sets the initial checked state of a checkbox or radio control.
Sets the initial checked state of a checkbox or radio input. For radio buttons sharing the same name, the checked state identifies which option starts selected.
cite URL
Provides a URL identifying the source of a quotation or edit.
Provides a URL identifying the source or explanation for a quotation or document change. It is used on elements such as blockquote, q, del, and ins, and is metadata rather than a visible citation by itself.
class space-separated tokens
Assigns one or more CSS/DOM class names.
Assigns one or more class names to an element. Classes are widely used as hooks for CSS, JavaScript, testing, and other systems that need to identify groups of elements.
classid URL / identifier
Historically identifies an implementation for an object element.
Historically identified the implementation of an embedded object, often a browser plugin or ActiveX control. It is strongly associated with the old plugin web.
clear enumerated
Historically controls text flow around floated content.
Historically controlled how elements such as br interacted with floated content, with values indicating which side should be cleared. CSS clear replaced this presentational attribute.
clip CSS value
Defines a clipping rectangle using legacy CSS clipping syntax.
clip-path CSS value / URL
Associates an element with a clipping path.
clip-rule enumerated / CSS value
Determines which parts of a shape are inside a clipping path.
clipPathUnits enumerated
Defines the coordinate system used by a clipPath's contents.
Sets the coordinate system used by an SVG clipPath. It determines whether clip geometry is interpreted in user space or relative to the target element's bounding box.
close text
Specifies the closing delimiter used by a legacy MathML mfenced element.
closedby enumerated
Specifies which user actions are allowed to close a dialog.
code text
Historically names the applet class or object code to load.
Historically named the Java class file to run inside an applet. It is part of the obsolete Java applet embedding model.
codebase URL
Historically specifies a base URL for applet or object resources.
Historically supplied a base URL for locating applet or object resources. It was mainly associated with Java and plugin content and has no normal role in modern HTML.
codetype MIME type
Historically declares the MIME type of code used by an object.
Historically declared the expected content type of code associated with an object. It belonged to older object/plugin loading mechanisms and is obsolete.
color color
Specifies color in SVG presentation contexts; the same name was also used by obsolete presentational HTML markup.
Historically specified a text or rule color directly in markup, especially on font and some presentational elements. CSS color and related properties replaced these uses in modern HTML.
color-interpolation enumerated / CSS value
Specifies the color space used for color interpolation.
color-interpolation-filters enumerated / CSS value
Specifies the color space used for filter-effect interpolation.
colorspace enumerated
Selects the color space used to serialize a color input's value.
cols positive integer
Specifies the visible width of a textarea in character columns.
Sets a visible width in character columns for certain text-entry or historical layout elements. It is most familiar on textarea, where it provides an initial sizing hint rather than a hard limit on entered text.
colspan positive integer
Specifies how many table columns a cell spans.
Makes a table cell span more than one column. It is used on td and th and is important when the logical structure of a row does not map one-to-one to the table's column grid.
columnalign space-separated enumerated values
Specifies horizontal alignment of MathML table cells.
Controls horizontal alignment of columns in MathML tables. Values can be applied across one or more columns.
columnlines space-separated enumerated values
Specifies line styles between MathML table columns.
Controls dividing lines between MathML table columns. It accepts line-style values for the boundaries between columns.
columnspacing space-separated lengths
Specifies spacing between MathML table columns.
Sets spacing between columns in a MathML table. It is the mathematical-table counterpart to ordinary table gap control.
columnspan non-negative integer
Specifies how many MathML table columns a cell spans.
command enumerated / custom command keyword
Specifies the action a command-invoking button requests from its target.
commandfor ID reference
Identifies the element targeted by a command-invoking button.
compact boolean
Historically requests compact rendering of certain lists.
Historically requested a more compact presentation for certain lists and related elements. It was purely presentational and was replaced by CSS.
content text
Provides the value associated with metadata declared by a meta element.
Supplies the value associated with a meta element's metadata declaration. Its meaning depends on the accompanying name, http-equiv, or other metadata context.
contenteditable enumerated
Controls whether an element's contents can be edited.
Makes an element's contents editable by the user when enabled. The browser provides basic editing behavior, while scripts can observe or manipulate the resulting DOM changes.
contextmenu ID reference
Historically associates an element with a context menu.
controls boolean
Requests built-in media playback controls.
Requests the browser's built-in playback controls for audio or video. The exact appearance varies by browser, but commonly includes play/pause, seeking, volume, and fullscreen controls where applicable.
controlslist space-separated tokens
Hints which built-in controls a browser should expose for audio or video.
Provides hints about which native media controls should be omitted from an audio or video element. Values can request restrictions such as hiding download, remote playback, or fullscreen controls where the browser supports them.
coords comma-separated numbers
Specifies coordinates for an image-map area.
Defines coordinates for a clickable region in an image map, usually on area. The required number and interpretation of coordinates depend on the associated shape value.
credentialless boolean
Loads an iframe in a credentialless ephemeral context.
Loads an iframe in a special credentialless context that omits credentials and storage normally associated with cross-origin requests. It is used in advanced cross-origin isolation scenarios.
crossorigin enumerated
Controls CORS behavior for external resources.
Controls how a cross-origin request is made for resources such as images, scripts, fonts, audio, video, and links. Values such as anonymous and use-credentials determine whether credentials are sent and whether CORS rules permit the result to be used in certain APIs.
csp text
Specifies a Content Security Policy for an iframe's embedded document.
Supplies a Content Security Policy for an embedded iframe in implementations that support the attribute. It is a specialized security control and is not broadly used in ordinary markup.
cursor CSS value
Specifies the mouse cursor displayed when pointing at an element.
cx length / percentage
Specifies the x-coordinate of a center point.
Sets the x-coordinate of the center of an SVG circle, ellipse, or radial gradient where applicable. Its exact role depends on the SVG element carrying it.
cy length / percentage
Specifies the y-coordinate of a center point.
Sets the y-coordinate of the center of an SVG circle, ellipse, or radial gradient. It is one of the common SVG geometry attributes.
d path data
Defines the shape of an SVG path.
Contains path data for an SVG path element. The compact command syntax describes moves, straight lines, Bรฉzier curves, arcs, and path closure.
data URL
Specifies the resource URL for an object element.
Specifies the resource URL loaded by an object element. It is roughly analogous to src on several other embedding elements, but belongs specifically to object.
data-* text
Family of custom data attributes for storing application-specific data on elements.
Defines custom data attributes whose names begin with data-. They allow authors to store small pieces of page-specific metadata directly on elements and access them through JavaScript, including through the dataset API.
datafld text
Internet Explorer data-binding attribute identifying a field in a data source.
Was an Internet Explorer data-binding attribute that named the field to bind to. It has no role in modern standards-based HTML.
dataformatas enumerated
Internet Explorer data-binding attribute controlling how bound data is rendered.
Was an Internet Explorer data-binding attribute controlling how bound data was interpreted, such as text or HTML. It is proprietary and obsolete.
datapagesize integer
Internet Explorer data-binding attribute controlling records displayed per table page.
datasrc ID reference
Internet Explorer data-binding attribute identifying a data source.
Was used by Internet Explorer's data binding system to identify a data source for an element. That proprietary data-binding model is obsolete.
datetime date/time string
Provides a machine-readable date or time.
Provides a machine-readable date, time, duration, or timestamp. It appears on time and can also record when content marked by ins or del was changed.
declare boolean
Historically declares an object without immediately instantiating it.
Historically marked an object as a declaration that should not be instantiated immediately. It was part of older object-element behavior that modern HTML no longer uses.
decoding enumerated
Hints how an image should be decoded.
Gives the browser a hint about how image decoding should relate to other page work. Values such as async and sync can influence whether decoding is allowed to happen independently or is requested before surrounding presentation continues.
default boolean
Marks a text track as the default.
Marks a track element as the default timed-text track when more than one track is available. It is commonly used for a preferred subtitle, caption, or chapter track.
defer boolean
Defers execution of an external classic script until after parsing.
Tells the browser to download an external classic script without blocking HTML parsing and execute it after parsing is complete. Deferred scripts preserve document order relative to one another.
denomalign enumerated
Specifies horizontal alignment of a fraction denominator.
depth length / percentage
Specifies the desired depth below the baseline for mpadded or related MathML layout.
descent number
Historically specifies the maximum unaccented depth of an SVG font.
diffuseConstant number
Controls the diffuse reflection strength of a lighting filter.
dir enumerated
Specifies text direction.
Sets the base direction of text for an element and its descendants. Common values are ltr, rtl, and auto, with auto allowing the browser to infer direction from the content.
direction enumerated
Specifies text direction in SVG presentation contexts; the same name was also used by the non-standard marquee element.
dirname text
Submits the text direction of an associated form control.
Causes a form submission to include the text direction of a particular input or textarea in an additional field. It is useful when the server needs both the entered text and whether the user entered it left-to-right or right-to-left.
disabled boolean
Disables a form control or related interactive element.
Disables a form control or related interactive element so it cannot normally be used or focused. Disabled form controls are generally excluded from form submission.
disablepictureinpicture boolean
Requests that Picture-in-Picture be disabled for a video element.
Requests that Picture-in-Picture controls and behavior be disabled for a video element. Browsers may still reserve some discretion over the feature.
disableremoteplayback boolean
Disables remote playback UI and capability for an audio or video element.
Prevents or discourages remote playback of media to external devices such as TVs or casting targets. It is used on audio and video where remote playback would be undesirable.
display CSS value / enumerated
Specifies display behavior in SVG presentation contexts and selects inline or block presentation for the MathML root element.
displaystyle boolean-like
Controls whether MathML uses display-style or compact mathematical layout.
Controls whether MathML descendants use display-style mathematical layout. Display style generally uses larger operators and roomier fraction and script placement than inline math.
divisor number
Specifies the divisor applied to convolution-matrix results.
dominant-baseline enumerated / CSS value
Specifies the dominant baseline used for text alignment.
download boolean-like / filename
Indicates that a hyperlink is intended for downloading and may suggest a filename.
Indicates that a hyperlink should be treated as a download rather than ordinary navigation when browser and security rules allow it. A value can suggest the filename to use for the downloaded resource.
draggable enumerated
Controls whether an element can be dragged.
Controls whether an element can participate as a draggable source in the HTML drag-and-drop system. It is an enumerated attribute rather than a simple boolean, so values such as true and false are meaningful.
dropzone space-separated tokens
Historically declares accepted drag-and-drop operations and data types.
dur clock value / keyword
Specifies the duration of an SVG animation.
Sets the simple duration of an SVG SMIL animation. It determines how long one active run of the animation lasts.
dx length / list
Specifies a horizontal offset or sequence of offsets.
Applies a horizontal offset in several SVG text and filter contexts. Its meaning depends on the element, such as shifting text positions or filter output.
dy length / list
Specifies a vertical offset or sequence of offsets.
Applies a vertical offset in several SVG text and filter contexts. Like dx, it is context-dependent.
edgeMode enumerated
Specifies how pixels outside an image boundary are handled by a convolution filter.
elementtiming text
Marks an element for Element Timing performance observation.
elevation number / angle
Specifies the vertical angle of a distant light source.
enctype enumerated
Specifies how submitted form data is encoded.
Sets the encoding used for submitted form data. Common values include application/x-www-form-urlencoded, multipart/form-data for file uploads, and text/plain for limited debugging or specialized uses.
end timing value / list
Specifies when an SVG animation ends.
Sets when an SVG SMIL animation ends. It can use clock values, event conditions, and references to other animations.
enterkeyhint enumerated
Hints the action label for the Enter key on virtual keyboards.
Hints what action label or icon a virtual keyboard should show for its Enter key. Values such as search, send, next, done, and go can make mobile input interfaces better match the control's purpose.
event text
Historically associates a script with an event in legacy HTML.
Was historically used with script in some event-binding models to indicate which event should trigger the script. Modern HTML uses normal event listeners or event handler attributes instead.
exponent number
Sets the exponent used by a gamma component-transfer function.
exportparts comma-separated mappings
Exports named CSS shadow parts through a shadow tree boundary.
Exposes selected CSS shadow parts from a nested shadow tree to an outer component. It allows component authors to forward part names through multiple layers of Web Components.
fence boolean-like
Indicates whether a MathML operator should be treated as a fence.
Indicates that a MathML operator acts as a fence such as a parenthesis or bracket. Fenced operators may receive special spacing and stretching behavior.
fetchpriority enumerated
Hints the relative fetch priority of a resource.
Provides a relative priority hint for fetching a resource. Values such as high, low, and auto let authors signal that a particular image, script, or linked resource should be treated as more or less urgent.
fill paint / enumerated
Sets an SVG shape's fill paint or, in animation timing, the post-animation behavior.
Sets the paint used inside an SVG shape or text element, or controls animation fill behavior on certain animation elements. Because the name is reused in different SVG contexts, its meaning depends on the element.
fill-opacity number / percentage
Sets the opacity of an SVG element's fill paint.
fill-rule enumerated / CSS value
Determines how the interior of a shape is calculated for filling.
filter CSS value / URL
Applies one or more filter effects to an element.
filterUnits enumerated
Defines the coordinate system used by a filter region.
Sets the coordinate system used for an SVG filter region. It determines whether filter geometry is interpreted relative to the target's bounding box or in user-space coordinates.
flood-color color
Sets the color produced by an feFlood filter primitive.
flood-opacity number / percentage
Sets the opacity produced by an feFlood filter primitive.
font-family CSS font-family
Specifies the font family used to render SVG text.
font-size CSS length / percentage
Specifies the font size used to render SVG text.
font-size-adjust CSS value
Adjusts font size based on lowercase or other font metrics.
font-stretch CSS value
Selects a normal, condensed, or expanded font face.
font-style CSS value
Selects normal, italic, or oblique font styling.
font-variant CSS value
Selects typographic variants for text.
font-weight CSS value
Specifies the weight or boldness of text.
font-width CSS value
Specifies a font width selection where supported.
fontfamily text
Legacy MathML attribute for selecting a font family; CSS is preferred.
fontsize length / percentage
Legacy MathML attribute for setting font size; CSS is preferred.
fontstyle enumerated / text
Legacy MathML attribute for setting font style; CSS is preferred.
fontweight enumerated / number
Legacy MathML attribute for setting font weight; CSS is preferred.
for ID reference / ID references
Associates a label or output with another element by ID.
Associates one element with another by identifier. It is best known on label, where it points to a form control, and on output, where it can list controls involved in producing the result.
form ID reference
Associates a form-associated element with a form by ID.
Associates a form-associated element with a form elsewhere in the document by referencing the form's id. This allows controls to belong to a form even when they are not physically nested inside it.
formaction URL
Overrides the form submission URL for a submit control.
Overrides a form's action URL for a particular submit button or submit-type input. It allows one form to send data to different destinations depending on which submission control the user activates.
format text
Historically specifies the format of an external font resource in SVG font markup.
formenctype enumerated
Overrides form encoding for a submit control.
Overrides the parent form's submission encoding for a particular submit control. It is useful when one button needs multipart/form-data or another encoding while the rest of the form uses a different default.
formmethod enumerated
Overrides the submission method for a submit control.
Overrides the parent form's HTTP submission method for a particular submit control. It is usually used to choose between get and post for different actions within the same form.
formnovalidate boolean
Skips constraint validation for submission through a particular control.
Lets a particular submit control bypass the form's built-in constraint validation. It is commonly used for secondary actions such as saving a draft even when required fields are incomplete.
formtarget browsing-context name / keyword
Overrides the submission target browsing context for a submit control.
Overrides the browsing context used for the result of a form submission triggered by a particular submit control. Its values follow the same general target conventions used by links and forms.
fr length / percentage
Specifies the focal-circle radius of an SVG radial gradient.
frame enumerated
Historically controls which outer borders of a table are rendered.
Historically controlled which outer borders of a table were drawn. CSS border properties replaced this specialized table-presentation attribute.
frameborder enumerated / boolean-like
Historically controls whether a frame or iframe has a border.
Historically controlled whether a frame or iframe displayed a border. It was common in embed snippets for years, but CSS now controls iframe borders.
framespacing integer
Historically sets spacing between frames.
Was a proprietary frame-layout attribute controlling space between frames. It belongs to the obsolete frameset era.
from value
Specifies the starting value of an SVG animation.
Sets the starting value for an SVG animation. It is commonly used together with to or by.
fx length / percentage
Specifies the x-coordinate of a radial gradient's focal point.
fy length / percentage
Specifies the y-coordinate of a radial gradient's focal point.
g1 glyph-name list
Historically identifies the first glyph name or names in an SVG kerning pair.
g2 glyph-name list
Historically identifies the second glyph name or names in an SVG kerning pair.
glyph-name comma-separated names
Historically assigns one or more names to a glyph in an SVG font.
glyph-orientation-horizontal angle / CSS value
Historically controls glyph orientation for horizontal text.
glyph-orientation-vertical angle / CSS value
Historically controls glyph orientation for vertical text.
gradientTransform transform list
Applies an additional transform to a gradient coordinate system.
Applies an SVG transform to the coordinate system of a gradient. It can translate, rotate, scale, or otherwise transform the gradient independently from the object using it.
gradientUnits enumerated
Defines the coordinate system used by a gradient.
Sets the coordinate system used to interpret an SVG gradient's geometry. It switches between object-bounding-box coordinates and user-space coordinates.
hanging number
Historically specifies the hanging baseline position in an SVG font.
headers space-separated ID references
Associates a table data cell with header cells by ID.
Lists the ids of table header cells associated with a particular td or th cell. It is mainly useful in complex tables where simple row or column scope relationships are not enough to express the header structure.
headingoffset integer
Offsets the computed accessibility heading level of descendant headings.
headingreset boolean
Stops inherited heading offsets from affecting descendant headings.
height integer / dimension
Specifies an intrinsic or presentational height for certain embedded elements.
Provides an intrinsic or presentational height for certain replaced elements such as img, video, canvas, iframe, and embed. On images and video, supplying both width and height can help the browser reserve space before the resource finishes loading.
hidden enumerated / boolean-like
Indicates that an element is not currently relevant or should not be rendered.
Indicates that an element should not currently be presented to the user. The special until-found value allows hidden content to become discoverable through browser find-in-page or fragment navigation behavior.
high number
Sets the lower boundary of the high-value range for a meter.
Sets the threshold above which a meter value is considered high. It works together with min, max, low, optimum, and value to describe the measured range.
horiz-adv-x number
Historically specifies the horizontal advance after rendering an SVG glyph.
horiz-origin-x number
Historically specifies the horizontal-writing X origin for glyphs in an SVG font.
horiz-origin-y number
Historically specifies the horizontal-writing Y origin for glyphs in an SVG font.
href URL
Specifies the URL of a hyperlink or linked resource.
Provides the destination URL for hyperlinks and several document relationships. It appears most prominently on a and link, and also in some other URL-bearing contexts.
hreflang language tag
Specifies the language of a linked resource.
Indicates the language of a linked resource. It is commonly used on a and link and acts as a hint about the destination rather than changing the language of the current element.
hspace integer
Historically specifies horizontal space around an image or embedded object.
Historically added horizontal space around images, objects, or applets. CSS margin replaced it.
http-equiv token
Defines a pragma-like metadata directive.
Lets a meta element express certain HTTP-header-like directives inside the document. Common examples include content-security-policy and refresh, though real HTTP headers are often preferable when the server can set them directly.
id ID
Assigns a document-unique identifier.
Assigns a document-wide identifier to an element. It is used by fragment links, labels, scripts, CSS selectors, ARIA relationships, and many other mechanisms that need to refer to one specific element.
ideographic number
Historically specifies the ideographic baseline position in an SVG font.
image-rendering CSS value
Provides a hint about the preferred image scaling algorithm.
imagesizes source-size list
Provides responsive image size information for an image preload link.
Provides source-size information for images referenced through certain link preloads. It corresponds to sizes behavior in responsive images and helps the browser choose an appropriate candidate early.
imagesrcset source-set list
Provides responsive image candidates for an image preload link.
Provides responsive image candidates on a link element used for image preloading. It mirrors srcset-style candidate selection before the actual img or picture content is encountered.
in filter input keyword / result name
Names the primary input for an SVG filter primitive.
in2 filter input keyword / result name
Names the second input for filter primitives that combine two sources.
incremental boolean
Non-standard WebKit/Blink attribute causing search inputs to emit search events while editing.
Is a non-standard attribute used by some WebKit-based browsers to make search input controls dispatch search events repeatedly while the user types. It should be treated as browser-specific.
inert boolean
Makes an element and its descendants non-interactive for user input and focus.
Makes an element and its relevant descendants non-interactive for focus and user input. It is particularly useful for background page content while a modal interface is active.
inputmode enumerated
Hints the kind of virtual keyboard or input mechanism to use.
Hints what kind of virtual keyboard or input interface is appropriate for editable content. Values such as numeric, decimal, email, url, tel, and search do not enforce validity; they guide the input UI.
integrity space-separated integrity metadata
Provides cryptographic hashes for Subresource Integrity checking.
Contains a cryptographic hash used for Subresource Integrity checks. On supported external resources, the browser can reject a response whose bytes do not match the expected hash.
intercept number
Sets the intercept value for a linear component-transfer function.
interestfor ID reference
Identifies an element whose state or visibility is affected when the user shows interest in the invoker.
is custom-element name
Identifies a customized built-in custom element.
Requests a customized built-in element registered through the Custom Elements API. It allows an existing HTML element such as button to be upgraded with custom behavior while retaining its native element type.
ismap boolean
Marks an image as part of a server-side image map.
Marks an img inside a hyperlink as a server-side image map. When the user activates the image, pointer coordinates are appended to the link URL for server-side handling.
itemid URL / text
Provides a global identifier for a microdata item.
Provides a global identifier for an item in HTML microdata. It is used with itemscope and itemtype when a vocabulary allows or requires an item to have a globally meaningful identity.
itemprop space-separated tokens
Defines one or more microdata properties.
Assigns one or more microdata properties to an element. The property's value is derived from the element according to microdata rules, which may use its text content or another attribute such as href, src, or content.
itemref space-separated ID references
Associates additional elements with a microdata item by ID.
Lets a microdata item include properties located elsewhere in the document. Its value is a list of element ids whose contents should be considered part of the item's property set.
itemscope boolean
Creates a microdata item.
Declares that an element represents a microdata item. It is a boolean attribute and is commonly paired with itemtype plus one or more descendant itemprop attributes.
itemtype space-separated URLs
Specifies one or more vocabulary URLs for a microdata item.
Provides one or more vocabulary URLs identifying the type of a microdata item. It is used on an element with itemscope and gives meaning to the item's itemprop names.
k number
Historically specifies the kerning adjustment between a pair of SVG glyphs.
k1 number
Sets the k1 coefficient used by arithmetic compositing.
k2 number
Sets the k2 coefficient used by arithmetic compositing.
k3 number
Sets the k3 coefficient used by arithmetic compositing.
k4 number
Sets the k4 coefficient used by arithmetic compositing.
kernelMatrix number list
Defines the matrix of numbers used by a convolution filter.
kernelUnitLength number / number pair
Specifies the intended spacing between convolution kernel samples.
keyPoints semicolon-separated numbers
Specifies positions along a motion path used by an animation.
Defines normalized progress points along the path of an SVG motion animation. It works with keyTimes to control how motion progress maps to time.
keySplines semicolon-separated control points
Defines cubic Bรฉzier easing functions between animation keyframes.
Defines cubic Bรฉzier easing curves for segments of an SVG animation using spline interpolation. Each curve controls the pacing between adjacent key times.
keyTimes semicolon-separated numbers
Specifies the relative timing of animation keyframes.
Provides normalized timing positions for values in an SVG animation. It lets authors control exactly when each key value is reached.
kind enumerated
Specifies the kind of timed text track.
Identifies the kind of timed text represented by a track element. Values include subtitles, captions, descriptions, chapters, and metadata.
label text
Provides a human-readable label for certain options, tracks, or groups.
Provides a human-readable label in several element-specific contexts. It names option groups, track choices, and some menu-related structures, so its exact role depends on the element carrying it.
lang language tag
Declares the language of an element's content.
Declares the language of an element's content. It can be set on html for the page's primary language or on any descendant whose language differs from its surroundings.
language text
Historically specifies the scripting language of a script element.
Was historically used on script to identify the scripting language, commonly with values such as JavaScript. Modern HTML does not need it; script behavior is determined through the element and, where relevant, type.
leftmargin integer
Historically sets the left body margin in pixels.
Was a proprietary body attribute used by Internet Explorer to set the left page margin. Standard CSS margins replaced it.
lengthAdjust enumerated
Controls whether SVG text fitting adjusts spacing only or spacing and glyphs.
letter-spacing CSS length / normal
Controls spacing between text characters.
lighting-color color
Sets the light-source color for SVG lighting filters.
limitingConeAngle number / angle
Specifies the limiting cone angle of a spotlight.
linethickness length / percentage / keyword
Specifies the thickness of a MathML fraction bar.
link color
Historically sets the color of unvisited hyperlinks on the body element.
Historically set the default color of unvisited hyperlinks, usually on body. CSS link pseudo-classes replaced this page-level presentational attribute.
list ID reference
Associates an input with a datalist by ID.
Connects an input control to a datalist by referencing the datalist's id. The datalist then supplies suggested values while the input remains an input rather than becoming a select menu.
loading enumerated
Hints whether an image or iframe should load eagerly or lazily.
Hints when the browser should load certain offscreen resources such as images or iframes. lazy can defer loading until the resource is likely to be needed, while eager requests normal immediate loading behavior.
longdesc URL
Historically provides a URL to a long description of an image or frame.
Provided a URL pointing to a longer description of an image or iframe. It was intended for complex visual content, but support and usage were poor and modern accessibility patterns use other ways to provide extended descriptions.
loop boolean
Requests repeated playback of media.
Requests repeated playback for audio or video. When playback reaches the end, the media begins again from the start.
loopcount integer
Historically controls repetition count in some legacy multimedia implementations.
low number
Sets the upper boundary of the low-value range for a meter.
Sets the threshold below which a meter value is considered low. It works with high and optimum to give semantic meaning to portions of the meter's numeric range.
lowsrc URL
Historically provides a low-resolution image to load before the main image.
Was an old image attribute for providing a low-resolution placeholder source while the main image loaded. Modern responsive images and browser loading behavior made it obsolete.
lquote text
Specifies the opening quotation character for a MathML string token.
lspace length / percentage
Specifies leading horizontal space around an operator or padded expression.
Sets the amount of space before a MathML operator. It is one of the fine-grained spacing controls used by mo.
manifest URL
Specifies an application cache manifest URL; replaced by service workers.
Historically pointed the html element to an Application Cache manifest. AppCache was removed from modern browsers and service workers became the replacement for offline web application caching.
marginheight integer
Historically specifies top and bottom margins inside frames.
Historically set the top and bottom inner margins of a frame or iframe. CSS and the layout of the embedded document replaced this frame-era presentation control.
marginwidth integer
Historically specifies left and right margins inside frames.
Historically set the left and right inner margins of a frame or iframe. It is another obsolete remnant of frame-based layout.
marker-end URL / CSS value
Specifies the marker drawn at the final vertex of a path or shape.
marker-mid URL / CSS value
Specifies markers drawn at intermediate vertices of a path or shape.
marker-start URL / CSS value
Specifies the marker drawn at the first vertex of a path or shape.
markerHeight length / number
Specifies the height of a marker viewport.
Sets the height of the viewport used by an SVG marker. It helps define how marker graphics such as arrowheads are scaled.
markerUnits enumerated
Defines the coordinate system used for marker dimensions.
Controls whether an SVG marker's coordinate system scales with stroke width or uses user-space units. This affects whether marker size changes when the stroked path gets thicker.
markerWidth length / number
Specifies the width of a marker viewport.
Sets the width of the viewport used by an SVG marker. Together with markerHeight it defines the marker's nominal viewport.
mask URL / CSS value
Applies a mask to an element.
mask-type enumerated / CSS value
Specifies whether an SVG mask is interpreted using luminance values or alpha values.
maskContentUnits enumerated
Defines the coordinate system used by a mask's contents.
Sets the coordinate system used by the contents of an SVG mask. It can be relative to the target's bounding box or use normal user-space coordinates.
maskUnits enumerated
Defines the coordinate system used by a mask's geometry.
Sets the coordinate system used for an SVG mask's own region. It is separate from maskContentUnits, which controls the coordinate system inside that region.
mathbackground color
Legacy MathML attribute specifying an element's background color.
Historically set the background color of MathML content. Modern styling generally uses standard CSS background properties instead.
mathcolor color
Specifies the foreground color of MathML content.
Historically set the foreground color of MathML content. Standard CSS color is now preferred.
mathematical number
Historically specifies the mathematical baseline position in an SVG font.
mathsize length / percentage / keyword
Specifies the font size used for MathML content.
Historically controlled MathML text size. Modern MathML styling generally relies on CSS font-size.
mathvariant enumerated
Selects a mathematical typographic variant such as bold, italic, or double-struck.
max number / date / time
Sets a maximum permitted or measured value.
Sets an upper bound in several controls and measurement elements. It appears on numeric and date-related inputs, meter, and progress, with interpretation depending on the element and input type.
maxlength non-negative integer
Sets the maximum permitted text length.
Sets the maximum number of characters a user may enter into a text-like input or textarea. Browser constraint validation can treat values longer than this limit as invalid.
maxsize length / percentage / keyword
Specifies the maximum size to which a stretchy MathML operator may grow.
Appeared in some early form-control implementations as a size or input constraint. It never became a standard general-purpose HTML attribute.
media media query / text
Specifies the media or environment for which a linked resource applies.
Specifies the media condition under which a linked resource, source, or style block applies. Its syntax generally follows CSS media query rules, allowing conditions based on viewport size, color scheme, print output, and other media features.
method enumerated
Specifies a method or mode whose meaning depends on context, including HTML form submission and SVG text-path layout.
Sets how form data is submitted, most commonly with get or post. Dialog-related form behavior can also use the special dialog method in the appropriate context.
methods space-separated tokens
Historically describes supported HTTP methods for a link.
Historically indicated HTTP methods associated with a link relationship. It never became part of ordinary modern link authoring and is obsolete.
min number / date / time
Sets a minimum permitted or measured value.
Sets a lower bound for numeric, range, date, time, and related form controls, and also for meter. Its exact syntax depends on the element or input type using it.
minlength non-negative integer
Sets the minimum permitted text length.
Sets the minimum number of characters required in a text-like input or textarea. It participates in built-in form validation when the user edits the control.
minsize length / percentage
Specifies the minimum size of a stretchy MathML operator.
Appeared in older or experimental form-control work as a minimum sizing constraint. It is not part of ordinary modern HTML.
mode enumerated
Specifies the blending mode used by certain legacy SVG filter operations.
movablelimits boolean-like
Indicates whether under/overscripts may move to sub/superscript positions in compact math layout.
Indicates that an operator's limits may move between over/under placement and sub/superscript placement depending on display style. Large operators such as summation signs commonly use this behavior.
mozactionhint text
Legacy Mozilla attribute hinting the action label for a virtual keyboard's Enter key.
Was a Mozilla-specific attribute used to hint the action label shown on virtual keyboards. The standardized enterkeyhint attribute replaced this role.
mozallowfullscreen boolean
Legacy Mozilla-prefixed iframe attribute enabling fullscreen.
multiple boolean
Allows multiple values or selections.
Allows more than one value to be selected or entered in controls that support it. It is commonly used on file inputs, email inputs, and select elements.
muted boolean
Sets media to begin muted.
Sets the initial muted state of audio or video. Media may still be programmatically unmuted later, and muted autoplay is often treated more permissively by browsers than autoplay with sound.
n text
Historical NEXTID attribute giving the next suggested anchor identifier.
name text
Assigns a name used by forms, browsing contexts, metadata, maps, and other features.
Assigns a name used by several HTML mechanisms, especially form submission, browsing contexts, and metadata. Its meaning depends heavily on the element: on form controls it becomes the submitted field name, while on meta it identifies a metadata key.
nohref boolean
Historically indicates that an image-map area has no hyperlink.
Historically marked an area in an image map as having no hyperlink destination. Modern markup omits href on an area when it should not link anywhere.
nomodule boolean
Prevents a script from running in browsers that support JavaScript modules.
Prevents a script from running in browsers that support JavaScript modules. It is commonly used to deliver a legacy fallback script only to older browsers that do not understand type="module".
nonce text
Provides a cryptographic nonce used by Content Security Policy.
Carries a one-time cryptographic nonce used with Content Security Policy. It can authorize a particular inline script or style block without broadly allowing all inline code.
noshade boolean
Historically requests a solid rather than shaded horizontal rule.
Historically requested a solid rather than shaded horizontal rule. CSS replaced this presentational hr styling.
notation space-separated tokens
Lists enclosure notations to draw around MathML content.
Chooses the enclosure marks drawn by MathML menclose. Multiple notation keywords can be combined to request boxes, circles, strikes, radicals, and related marks.
novalidate boolean
Disables constraint validation when a form is submitted.
Disables built-in constraint validation when a form is submitted. The form can still be checked or validated by custom JavaScript if the page implements its own rules.
nowrap boolean
Historically prevents automatic wrapping in certain table cells or blocks.
Historically prevented text wrapping in table cells and some other contexts. CSS white-space now provides more precise control over wrapping behavior.
numalign enumerated
Specifies horizontal alignment of a fraction numerator.
numOctaves integer
Specifies the number of octaves used to generate turbulence noise.
offset number / percentage
Specifies a gradient stop position or a transfer-function offset, depending on context.
Sets the position of an SVG gradient stop along the gradient. It is typically expressed as a number or percentage from the beginning to the end of the gradient.
on* JavaScript
Family of inline event-handler attributes such as onclick, onload, and oninput.
onshow JavaScript
Historically handles the display of a context menu.
opacity number / percentage
Sets the overall opacity of an SVG element.
open boolean
Indicates that a details disclosure is open or a dialog is active.
Sets an element's open state in contexts such as details and dialog. On details it makes the additional content visible, while dialog uses open to indicate that the dialog is currently shown.
operator enumerated
Selects the compositing or morphology operation used by a filter primitive.
optimum number
Sets the optimum value for a meter.
Marks the ideal value or region within a meter's range. Together with low and high, it lets the browser interpret whether a measurement is favorable or unfavorable relative to the intended optimum.
order integer / integer pair
Specifies the dimensions of a convolution kernel matrix.
orient angle / keyword
Specifies how a marker is rotated when placed on a path.
orientation enumerated
Historically specifies whether an SVG glyph is intended for horizontal, vertical, or both orientations.
origin text / coordinate value
Historically specifies an animation origin or coordinate reference.
overflow CSS value
Controls how content outside an SVG viewport is handled.
overline-position number
Historically specifies the overline position in an SVG font face.
overline-thickness number
Historically specifies the overline thickness in an SVG font face.
paint-order CSS value
Controls the order in which fill, stroke, and markers are painted.
panose-1 ten-integer list
Historically specifies a ten-number PANOSE-1 font classification for an SVG font face.
part space-separated tokens
Assigns CSS shadow-part names to an element.
Assigns one or more shadow-part names to an element inside a shadow tree. Outside CSS can then style those exposed parts with the ::part() pseudo-element.
path path data
Specifies a motion path used by an animateMotion element.
pathLength number
Provides the author's estimate of a path's total length for distance calculations.
Defines an author's reference length for an SVG path or shape. Browsers can scale distance-based calculations against this value, which is useful for dash patterns and path-based measurement.
pattern regular expression
Provides a regular expression used for input validation.
Provides a regular expression that a text-like input value must match for built-in validation to succeed. It is commonly paired with title or nearby instructions so the user knows what format is expected.
patternContentUnits enumerated
Defines the coordinate system for a pattern's contents.
Sets the coordinate system used by graphics inside an SVG pattern. It can use user-space coordinates or values relative to the target element's bounding box.
patternTransform transform list
Applies an additional transform to a pattern coordinate system.
Applies a transform to an SVG pattern's coordinate system. It can rotate, scale, skew, or translate the repeated pattern independently from the target geometry.
patternUnits enumerated
Defines the coordinate system used by a pattern tile.
Sets the coordinate system used for the geometry of an SVG pattern tile. It determines whether x, y, width, and height are interpreted in user space or relative to the target bounding box.
ping space-separated URLs
Provides URLs to notify when a hyperlink is followed.
Lists URLs that may be notified when a hyperlink is followed. Browsers that support hyperlink auditing send lightweight requests to those addresses in addition to navigating to the main href destination.
placeholder text
Provides a short hint for an empty form control.
Displays a short hint inside an empty form control, usually an input or textarea. It disappears when the user enters content and should not replace a persistent label.
playsinline boolean
Hints that video should play inline rather than automatically fullscreen.
Hints that video should play within its current page layout instead of automatically taking over a fullscreen playback interface. It is especially relevant on mobile devices.
pointer-events CSS value
Controls when an SVG element can be the target of pointer events.
points coordinate list
Defines a sequence of coordinate pairs for a polyline or polygon.
Provides the coordinate list used by SVG polygon and polyline elements. Each pair of numbers defines one vertex.
pointsAtX number
Specifies the x-direction of a spotlight's target point.
pointsAtY number
Specifies the y-direction of a spotlight's target point.
pointsAtZ number
Specifies the z-direction of a spotlight's target point.
popover enumerated
Declares an element as a popover and controls its default popover behavior.
Turns an element into a popover that can be shown and hidden through the browser's popover mechanisms. Depending on its value, the popover may participate in automatic dismissal and stacking behavior or be managed more manually.
popovertarget ID reference
Identifies a popover controlled by a button or input.
Associates a button or supported input control with a popover element by id. Activating the control can then show, hide, or toggle that popover without requiring custom JavaScript for the basic action.
popovertargetaction enumerated
Specifies whether a popover control shows, hides, or toggles its target.
Specifies what a popover-targeting control should do to its target. Common actions are show, hide, and toggle.
poster URL
Specifies a poster image shown before or during video loading.
Provides an image to display in a video element before video frames are available or playback begins. It acts much like a cover image for the media player.
preload enumerated
Hints how much media data should be loaded before playback.
Hints how much audio or video data the browser should load before playback begins. Values such as none, metadata, and auto express author preference, but browsers may override the hint based on user settings or resource constraints.
preserveAlpha boolean-like
Controls whether a convolution filter preserves the source alpha channel.
preserveAspectRatio alignment / meet-or-slice value
Controls how an SVG viewBox is scaled and aligned within a viewport.
Controls how SVG content with a viewBox is scaled and aligned when its viewport has a different aspect ratio. It can preserve proportions with letterboxing or allow non-uniform stretching.
primitiveUnits enumerated
Defines the coordinate system used by filter primitive geometry.
profile URL list
Historically identifies metadata profile URIs for a document head.
Historically associated a head element with one or more metadata profile URLs. The mechanism saw little practical use and was removed from modern HTML.
prompt text
Historical ISINDEX attribute specifying the prompt shown for its single-line query field.
Historically supplied the prompt text shown by the isindex element. Both the attribute and the element belong to the pre-form era of early HTML.
r length / percentage
Specifies a radius.
Sets a radius in SVG, most commonly for circle and radialGradient. The exact geometry depends on the element.
radius number / number pair
Specifies the x and y radii used by an SVG morphology filter.
readonly boolean
Makes a form control non-editable while preserving its value.
Prevents the user from changing the value of a form control while leaving the value available for focus and form submission. It differs from disabled, which generally removes the control from submission and normal interaction.
referrerPolicy enumerated
Specifies the referrer policy for an SVG resource fetch.
referrerpolicy enumerated
Controls what referrer information is sent for a resource fetch.
Controls how much referrer information is sent when fetching or navigating to another resource. It appears on several resource-loading and linking elements and supports policies ranging from no-referrer to more permissive same-origin or cross-origin behavior.
refX length / number
Specifies the marker reference point's x-coordinate.
refY length / number
Specifies the marker reference point's y-coordinate.
rel space-separated tokens
Specifies the relationship between the current document and a linked resource.
Describes the relationship between the current document or element and another resource. Common values include stylesheet, canonical, alternate, noopener, noreferrer, preconnect, preload, and many others, with available meanings depending on the element.
repeatCount number / keyword
Specifies how many times an SVG animation repeats.
Sets how many times an SVG SMIL animation repeats. It can be a number or indefinite.
repeatDur clock value / keyword
Specifies the total duration for repeated animation.
Sets the total amount of time an SVG SMIL animation is allowed to repeat. It can limit repetition independently from repeatCount.
required boolean
Marks a form control as requiring a value.
Marks a form control as requiring a value or selection before built-in constraint validation will allow ordinary submission. Its exact behavior depends on the control type.
requiredExtensions space-separated URLs
Lists required extension namespaces for conditional SVG processing.
Was used in SVG conditional processing to require support for specified extensions before rendering an element. It is obscure and not a common modern authoring tool.
requiredFeatures space-separated tokens
Historically lists required SVG feature strings for conditional processing.
restart enumerated
Controls whether and when an SVG animation can restart.
Controls whether an SVG SMIL animation can restart after it has begun or completed. Values can allow restarts freely, only when inactive, or not at all.
result custom identifier
Assigns a reusable name to the output of a filter primitive.
results integer
Legacy WebKit attribute controlling the number of saved search results shown for a search input.
Is a non-standard attribute historically used on WebKit search inputs to suggest how many recent search results the browser should display. It is browser-specific and not part of standard HTML.
rev space-separated tokens
Historically specifies the reverse relationship of a link.
Described a reverse link relationship, conceptually the inverse of rel, on elements such as a and link. It was poorly understood and rarely used correctly, and modern HTML relies on rel instead.
reversed boolean
Reverses the numbering direction of an ordered list.
Makes an ordered list count downward instead of upward. The browser can infer a starting value from the number of items unless start provides one explicitly.
rightmargin integer
Historically sets the right body margin in pixels.
Was a proprietary body attribute for setting the page's right margin. Standard CSS margins replaced it.
role ARIA role token
Assigns an explicit accessibility role.
Assigns an ARIA role that affects how an element is represented to accessibility APIs. It should be used only when the chosen role is allowed and when native HTML semantics do not already provide the correct behavior.
rotate number / angle / list
Specifies glyph rotation or rotation along a motion path, depending on context.
rowalign space-separated enumerated values
Specifies vertical alignment of MathML table rows or cells.
Controls vertical alignment of rows in MathML tables. It can set alignment for one or more rows.
rowlines space-separated enumerated values
Specifies line styles between MathML table rows.
Controls dividing lines between rows in a MathML table. It supplies line styles for row boundaries.
rows positive integer
Specifies the visible height of a textarea in rows.
Sets the initial visible height of a textarea in text rows. It affects presentation but does not limit how many lines the user can enter.
rowspacing space-separated lengths
Specifies spacing between MathML table rows.
Sets spacing between rows in a MathML table. It controls the vertical gap between mathematical table rows.
rowspan non-negative integer
Specifies how many table rows a cell spans.
Makes a table cell span multiple rows. It is used on td and th when a single cell logically applies to more than one row in the table grid.
rquote text
Specifies the closing quotation character for a MathML string token.
rspace length / percentage
Specifies trailing horizontal space after a MathML operator.
Sets the amount of space after a MathML operator. Together with lspace it controls operator spacing.
rules enumerated
Historically specifies which internal table borders are shown.
Historically controlled which internal dividing lines were drawn between rows, columns, or groups in a table. CSS border rules replaced it.
rx length / percentage
Specifies a horizontal radius.
Sets a horizontal radius in SVG geometry. It is used for ellipses and for rounding rectangle corners.
ry length / percentage
Specifies a vertical radius.
Sets a vertical radius in SVG geometry. It pairs with rx for ellipses and rounded rectangles.
sandbox space-separated tokens
Applies a set of restrictions to iframe content.
Applies restrictions to content loaded in an iframe. By default a sandboxed frame loses many capabilities, while individual allow-* tokens selectively restore abilities such as scripts, forms, downloads, or same-origin treatment.
scale number
Specifies the displacement scale factor used by a displacement-map filter.
scheme text
Historically provides a scheme for interpreting metadata content.
Historically supplied additional interpretation information for a meta element's content value. The mechanism was underspecified and is obsolete.
scope enumerated
Specifies the table cells for which a header cell applies.
Describes which table cells a th element acts as a header for. Typical values identify a row, column, row group, or column group, helping clarify table relationships.
scriptlevel integer / relative integer
Adjusts the mathematical script level and resulting math depth.
Adjusts the MathML script depth used to size nested notation. Increasing script level generally produces smaller mathematical text.
scriptminsize length
Legacy MathML attribute specifying a minimum script font size.
scriptsizemultiplier number
Legacy MathML attribute specifying the scale factor applied at deeper script levels.
scrollamount integer
Controls movement distance per step on the non-standard marquee element.
scrolldelay integer
Controls delay between movement steps on the non-standard marquee element.
scrolling enumerated
Historically controls scrollbars on frames and iframes.
Historically requested whether scrollbars should appear on a frame or iframe, often with yes, no, or auto. Modern scrolling behavior is controlled by CSS and the embedded document.
seed number
Sets the seed value for pseudo-random turbulence generation.
selected boolean
Sets the initial selected state of an option.
Sets the initial selected state of an option element. In a single-select control it usually identifies the option shown when the control first loads.
selection positive integer
Selects which child of a legacy MathML maction element is displayed.
separator boolean-like
Indicates whether a MathML operator should be treated as a separator.
Indicates that a MathML operator acts as a separator, such as a comma between list items. Operator dictionaries can use that information to determine spacing.
separators text
Specifies separator characters used by a legacy MathML mfenced element.
shadowrootclonable boolean
Makes a declarative shadow root clonable when created from a template.
shadowrootcustomelementregistry boolean
Indicates that a declarative shadow root will use a custom element registry.
shadowrootdelegatesfocus boolean
Sets focus delegation behavior for a declarative shadow root created from a template.
shadowrootmode enumerated
Creates a declarative shadow root and specifies whether its mode is open or closed.
shadowrootserializable boolean
Marks a declarative shadow root as serializable.
shadowrootslotassignment enumerated
Selects named or manual slot assignment for a declarative shadow root.
shape enumerated
Specifies the geometric shape of an image-map area.
Defines the geometry of an area in an image map. Common values describe rectangular, circular, polygonal, or default regions, with coords supplying the associated coordinates.
shape-rendering CSS value
Provides a hint about tradeoffs in rendering geometric shapes.
side enumerated
Specifies which side of a path SVG text is placed on.
size positive integer / text
Specifies a control's visible size or, historically, a presentational size.
Controls visible size in several form contexts. On text-like inputs it roughly indicates a character width, while on select it sets how many options are shown at once.
sizes source-size list / token list
Specifies responsive image source sizes or icon sizes depending on context.
Describes the intended display size of a responsive image under different media conditions, allowing the browser to choose an appropriate srcset candidate. On link rel="icon" it instead describes available icon dimensions, so the exact syntax is element-dependent.
slope number
Sets the slope of a linear component-transfer function.
slot slot name
Assigns an element to a named shadow DOM slot.
Assigns an element to a named slot in a shadow tree. The value must match the name of a slot element exposed by the component.
spacing enumerated
Controls how glyphs are distributed along an SVG text path.
span positive integer
Specifies how many columns a col or colgroup covers.
Specifies how many columns or related units an element covers in table-column structures. It is most commonly used on col and colgroup.
specularConstant number
Controls the specular reflection strength of a lighting filter.
specularExponent number
Controls the focus or shininess of specular lighting.
spellcheck enumerated
Controls whether spelling and grammar checking is enabled.
Hints whether spelling and grammar checking should be enabled for editable text. Browser behavior can still depend on user settings and platform capabilities.
spreadMethod enumerated
Specifies how a gradient extends beyond its defined start and end.
Controls how an SVG gradient behaves outside its normal start and end range. It can pad with edge colors, repeat, or reflect the gradient pattern.
src URL
Specifies the URL of an embedded resource.
Provides the URL of an external resource to load or embed. It is used by elements such as img, script, iframe, audio, video, source, input, and embed, with details depending on the element.
srcdoc HTML source text
Provides inline HTML content for an iframe.
Provides an iframe's HTML document directly as attribute text instead of loading it from a URL. When present, it takes precedence over the iframe's src for the embedded document content.
srclang language tag
Specifies the language of a text track.
Declares the language of timed text in a track element. It is especially relevant for subtitle tracks and helps browsers present language choices accurately.
srcset source-set list
Provides responsive image source candidates.
Provides multiple candidate image resources together with width or pixel-density descriptors. The browser chooses among them based on display conditions, device resolution, and sizes information where applicable.
standby text
Historically provides a message while an object loads.
Historically supplied a message to display while an object element's external resource was loading. It belongs to the older plugin-oriented object model.
start integer
Specifies the starting number of an ordered list.
Sets the starting ordinal number of an ordered list. The first li then uses that number unless an individual list item supplies its own value.
startOffset length / percentage / number
Specifies where text begins along an SVG path.
stdDeviation number / number pair
Specifies the standard deviation used by a Gaussian blur.
stemh number
Historically specifies the horizontal stem width of an SVG font face.
stemv number
Historically specifies the vertical stem width of an SVG font face.
step number / keyword
Sets the permitted step interval for certain input types.
Controls the permitted increment between values for numeric and date/time input types. The special value any removes step mismatch restrictions while preserving other range constraints.
stitchTiles enumerated
Controls whether adjacent turbulence tiles are stitched seamlessly.
stop-color color
Sets the color of a gradient stop.
stop-opacity number / percentage
Sets the opacity of a gradient stop.
stretchy boolean-like
Indicates whether a MathML operator may stretch to match adjacent content.
Indicates whether a MathML operator may stretch to match surrounding content. Parentheses, brackets, radicals, and arrows are common stretchy operators.
strikethrough-position number
Historically specifies the strikethrough position in an SVG font face.
strikethrough-thickness number
Historically specifies the strikethrough thickness in an SVG font face.
stroke paint
Sets the paint used to draw an element's outline.
Sets the paint used to draw the outline of SVG shapes and text. It accepts colors, gradients, patterns, context paint, or none.
stroke-dasharray length/percentage list / none
Defines the pattern of dashes and gaps used to draw a stroke.
Defines the alternating dash and gap pattern used to draw an SVG stroke. A sequence of lengths produces repeating custom line patterns.
stroke-dashoffset length / percentage
Specifies the offset into a stroke dash pattern.
Shifts the starting point of an SVG dash pattern along the path. Animating it can create moving-dash or line-drawing effects.
stroke-linecap enumerated
Specifies the shape used at the ends of open stroked subpaths.
Controls the shape of the ends of open SVG strokes. Common values are butt, round, and square.
stroke-linejoin enumerated
Specifies the shape used at corners of stroked paths.
Controls how adjacent SVG stroke segments are joined at corners. Miter, round, and bevel joins produce visibly different corner shapes.
stroke-miterlimit number
Sets the limit at which a miter join is converted to another join.
Limits the length of sharp miter joins in SVG strokes. When a join would become too long, the renderer falls back to a less extreme corner.
stroke-opacity number / percentage
Sets the opacity of an SVG stroke.
Sets the opacity of an SVG stroke independently from fill opacity and overall element opacity. It affects only the outline paint.
stroke-width length / percentage
Sets the width of an SVG stroke.
Sets the thickness of an SVG stroke. It can use lengths, percentages, and other supported SVG length values.
style CSS declarations
Contains inline CSS declarations.
Contains inline CSS declarations applied directly to an element. It is useful for element-specific styling but can become difficult to maintain when large amounts of presentation are embedded throughout the markup.
subscriptshift length / percentage
Legacy MathML attribute specifying the minimum downward shift of a subscript.
summary text
Historically provides a textual summary of a table.
Historically provided a textual summary of a table's structure or purpose through an attribute on table. Modern accessibility practice puts useful descriptions in visible captions, surrounding text, or other accessible content instead.
superscriptshift length / percentage
Legacy MathML attribute specifying the minimum upward shift of a superscript.
surfaceScale number
Specifies the height of the surface used by an SVG lighting filter.
symmetric boolean-like
Indicates whether a stretchy MathML operator should remain symmetric around the math axis.
Indicates whether a stretchy MathML operator should remain vertically symmetric around the mathematical axis. This is common for fences and certain relation symbols.
systemLanguage comma-separated language tags
Provides language tags used for conditional SVG processing.
tabindex integer
Controls sequential focus order and focusability.
Controls whether an element can receive keyboard focus and influences its position in sequential focus navigation. Values of 0 and -1 are common; positive values create explicit focus ordering and are usually best avoided.
tableValues number list
Provides a list of values for a table-based component-transfer function.
target browsing-context name / keyword
Specifies the browsing context in which to open or submit a resource.
Names the browsing context in which a link or form result should open. Special values include _self, _blank, _parent, and _top, while custom names can target a named frame or browsing context.
targetX integer
Specifies the horizontal target position of a convolution kernel.
targetY integer
Specifies the vertical target position of a convolution kernel.
text color
Historically sets the document text color on the body element.
Historically set the default text color for the document, usually on body. CSS color replaced it.
text-anchor enumerated / CSS value
Controls horizontal alignment of SVG text around its anchor point.
text-decoration CSS value
Specifies decorative lines applied to text.
text-overflow CSS value
Controls how clipped overflow text is signaled.
text-rendering CSS value
Provides a hint about tradeoffs in rendering SVG text.
textLength length / number
Specifies the target length used to fit SVG text.
title text
Provides advisory information about an element.
Provides advisory text about an element. Browsers often expose it as a tooltip on pointer hover, but that presentation is inconsistent and the attribute should not carry information that users must be able to access reliably.
to value
Specifies the ending value of an SVG animation.
Sets the ending value of an SVG SMIL animation. It is commonly paired with from or used by itself to animate from the current value.
topmargin integer
Historically sets the top body margin in pixels.
Was a proprietary body attribute for setting the page's top margin. It is obsolete in favor of CSS.
transform transform list
Applies transformations such as translate, scale, rotate, or skew.
Applies one or more transforms to SVG elements, including translation, rotation, scaling, skewing, and matrix transforms. It is the SVG attribute counterpart to CSS transform, though the two participate in slightly different historical models.
transform-origin CSS position
Specifies the origin point used for transformations.
translate enumerated
Controls whether content should be translated when localized.
Indicates whether an element's text and translatable attribute values should be translated when localization tools process the page. It is useful for names, code fragments, product identifiers, and other material that should remain unchanged.
truespeed boolean
Allows very small marquee delays in legacy Internet Explorer behavior.
type enumerated / MIME type / text
Specifies a type, kind, MIME type, control state, or list marker depending on element.
Selects a subtype or processing mode on several unrelated elements. It is especially important on input, where it determines the form control type, but also appears on button, script, link, source, ol, and other elements with element-specific meanings.
typemustmatch boolean
Historically required an object's resource MIME type to match its declared type.
u1 Unicode character / range list
Historically identifies the first Unicode character or range in an SVG kerning pair.
u2 Unicode character / range list
Historically identifies the second Unicode character or range in an SVG kerning pair.
underline-position number
Historically specifies the underline position in an SVG font face.
underline-thickness number
Historically specifies the underline thickness in an SVG font face.
unicode text
Historically identifies the Unicode character represented by an SVG glyph.
unicode-bidi CSS value
Controls embedding and isolation behavior for bidirectional text.
unicode-range Unicode range list
Historically specifies the Unicode range covered by an SVG font face.
units-per-em number
Historically specifies the coordinate units per em square for an SVG font face.
urn URN / text
Historically supplies a persistent identifier for a linked resource.
usemap hash-name reference
Associates an image or object with a client-side image map.
Associates an image or object with a client-side image map. Its value refers to the name of a map element whose area children define clickable regions.
v-alphabetic number
Historically specifies the vertical alphabetic baseline position in an SVG font.
v-hanging number
Historically specifies the vertical hanging baseline position in an SVG font.
v-ideographic number
Historically specifies the vertical ideographic baseline position in an SVG font.
v-mathematical number
Historically specifies the vertical mathematical baseline position in an SVG font.
valign enumerated
Historically specifies vertical alignment.
Historically controlled vertical alignment in table cells, rows, and related elements. CSS vertical-align replaced the attribute for modern layouts.
value varies
Provides a value for controls, options, list items, meters, data, and related elements.
Stores or initializes a value on several form and data-related elements. On input and option it is often the value submitted with a form, while on meter, progress, li, and data it has different element-specific meanings.
values value list
Provides a sequence of animation values or numeric filter values, depending on context.
Provides a semicolon-separated sequence of values for an SVG animation to move through. keyTimes and keySplines can control when and how those values are reached.
vector-effect enumerated / CSS value
Specifies vector rendering effects such as non-scaling strokes.
version text
Historically declares a markup version in HTML or SVG; retained only for legacy compatibility.
Historically declared a document or markup version in places such as html. Modern HTML uses its doctype and processing rules instead, so the attribute is unnecessary.
vert-adv-y number
Historically specifies the vertical advance after rendering an SVG glyph.
vert-origin-x number
Historically specifies the vertical-writing X origin for glyphs in an SVG font.
vert-origin-y number
Historically specifies the vertical-writing Y origin for glyphs in an SVG font.
viewBox four-number list
Defines the position and dimensions of an SVG viewport in user space.
Defines the internal coordinate rectangle mapped into an SVG viewport. It is central to responsive SVG because it lets the graphic scale while preserving its own coordinate system.
viewTarget text
Historically identifies target elements associated with an SVG view.
virtualkeyboardpolicy enumerated
Controls whether focusing editable content automatically shows an on-screen virtual keyboard.
Controls whether focusing an editable element automatically invokes the on-screen virtual keyboard in supporting browsers. It is useful for applications that manage virtual keyboard display themselves.
visibility CSS value
Controls whether an SVG element is visible while retaining layout participation.
vlink color
Historically sets the color of visited hyperlinks on the body element.
Historically set the color used for visited links, usually on body. CSS :visited replaced this document-wide presentational setting.
voffset length / percentage
Specifies a vertical offset for padded MathML content.
vspace integer
Historically specifies vertical space around an image or embedded object.
Historically added vertical space around images, objects, or applets. CSS margin is the modern replacement.
watch boolean
Requests continuing location updates when the device position changes on a geolocation element.
webkitallowfullscreen boolean
Legacy WebKit-prefixed iframe attribute enabling fullscreen.
webkitdirectory boolean
Allows a file input to select a directory and its contents in supporting browsers.
Allows a file input to select an entire directory rather than individual files in supporting browsers. The selected files expose relative path information so the directory structure can be reconstructed.
white-space CSS value
Controls how white space inside text is collapsed and wrapped.
width integer / dimension
Specifies an intrinsic or presentational width for certain elements.
Provides an intrinsic or presentational width for certain replaced elements such as img, video, canvas, iframe, and embed. Supplying image dimensions can help reserve layout space before the resource loads.
widths number list / text
Historically supplies glyph-width information for an SVG font face.
word-spacing CSS length / normal
Controls spacing between words in SVG text.
wrap enumerated
Controls text wrapping behavior in a textarea.
Controls how textarea content wraps for display and submission. The common soft and hard modes determine whether visual wrapping is merely presentational or whether line breaks are inserted into submitted text.
writing-mode CSS value
Controls the block flow direction and text orientation.
writingsuggestions enumerated
Controls whether browser writing suggestions are enabled.
x length / percentage / list
Specifies an x-coordinate or horizontal position.
Sets an x-coordinate or horizontal position in many SVG elements. Its exact meaning depends on the geometry, filter, gradient, or text element carrying it.
x-height number
Historically specifies the height of lowercase x-height glyphs in an SVG font face.
x-webkit-airplay enumerated
Legacy WebKit attribute controlling AirPlay availability for media.
x1 length / percentage / number
Specifies the first x-coordinate of a line or gradient vector.
Sets the first x-coordinate used by SVG line and linear-gradient geometry. It normally pairs with y1.
x2 length / percentage / number
Specifies the second x-coordinate of a line or gradient vector.
Sets the second x-coordinate used by SVG line and linear-gradient geometry. It normally pairs with y2.
xChannelSelector enumerated
Selects which color channel supplies x-axis displacement values.
xlink:actuate enumerated
Historically specifies when an XLink resource should be traversed.
xlink:arcrole URL
Historically specifies an XLink arc-role URI.
xlink:href URL / fragment reference
Historically specifies an XLink reference to another resource or element.
Was the namespaced XLink form used to reference resources from SVG elements. Modern SVG uses plain href instead, though xlink:href remains common in older markup.
xlink:role URL
Historically specifies an XLink role URI.
xlink:show enumerated
Historically specifies how an XLink target should be displayed.
xlink:title text
Historically provides a human-readable title for an XLink.
xlink:type enumerated
Historically specifies the XLink link type.
xml:base URL
Specifies an XML base URL used to resolve relative URLs in XML-based markup.
xml:id ID
Provides an XML-defined ID attribute, historically used in XML/SVG profiles.
xml:lang language tag
Declares content language using the XML-defined language attribute, including in SVG/XML contexts.
xml:space enumerated
Historically specifies how white space should be handled in XML/SVG content.
xmlns URL
Declares the default XML namespace; commonly present on standalone or copied SVG and MathML markup.
Declares an XML namespace. In standalone SVG or XHTML it identifies the namespace of the root element, while ordinary text/html parsing handles HTML namespaces without authors normally needing to write it.
xmlns:* URL
Family of XML namespace declarations that bind a prefix to a namespace URI.
y length / percentage / list
Specifies a y-coordinate or vertical position.
Sets a y-coordinate or vertical position in many SVG contexts. As with x, its exact meaning depends on the element.
y1 length / percentage / number
Specifies the first y-coordinate of a line or gradient vector.
Sets the first y-coordinate used by SVG line and linear-gradient geometry. It pairs with x1.
y2 length / percentage / number
Specifies the second y-coordinate of a line or gradient vector.
Sets the second y-coordinate used by SVG line and linear-gradient geometry. It pairs with x2.
yChannelSelector enumerated
Selects which color channel supplies y-axis displacement values.
z number
Specifies the z-coordinate of a point or light source in SVG filter effects.
zoomAndPan enumerated
Historically specifies whether zooming and panning are allowed for an SVG view.