attributes
Summary
This is a listing page for HTML attributes.
Page | Summary |
---|---|
ATOMICSELECTION html attribute | Specifies whether the element and its contents must be selected as a whole, indivisible unit. |
BaseHref | Retrieves a string of the URL where the object tag can be found, often the href of the document that the object is in, or the value set by a base element. |
aLink | |
abbr | Indicates an abbreviation or an acronym. |
accept | This attribute supplies browsers with a hint about what filetypes its element will accept. |
accessKey | Sets a keyboard keystroke for selection of its element, which would otherwise be done using a mouse. |
action | Sets the URL which the browser will send the form data on submission. |
align | |
allowTransparency | Sets or retrieves whether the object can be transparent. |
alt | The alt attribute is used as a textual representation for graphics and buttons in browsers that don’t or can’t render images, or when the resource is not found. |
async | Provides additional control over when an external script or an HTML import is being fetched and executed while a document loads. |
autocomplete | The autocomplete attribute specifies whether a browser should automatically provide values for a form element. |
autofocus | Provides a way to direct a user to a specific field when a document loads. |
balance | |
bgProperties | |
border | Specifies the width of the border around an element. Deprecated in HTML4, not supported in HTML5. Use CSS. |
border (frameSet, iframe) | Sets or retrieves the space between the frames, including the 3-D border. |
cellPadding | Specifies the space, in pixels, between the cell wall and the cell content. Not supported in HTML5. Use CSS. |
cells | Retrieves a collection of all cells in the table row or in the entire table. |
ch | Sets an alignment character. The first occurrence of the alignment character in each cell in a column will be on a vertical axis. |
chOff | Removes an alignment character set by the attribute ch . |
charset | The charset attribute is used to declare the character encoding of the document. |
checked | Indicates the initial state of a checkbox or radio button. |
cite | |
class | Specifies one or more classes for an element, usually used to point to a class in a style sheet. |
classid | Sets or retrieves the class identifier for the object. |
clear | |
codeBase | Sets or retrieves the URL of the component. |
codeType | |
colSpan | |
color | The foreground color of the text of an object. |
cols | |
cols (TextArea element) | |
cols (frameSet) | Sets or retrieves the number of columns in the table. |
compact | |
content | |
contentEditable | Sets or retrieves the string that indicates whether the user can edit the content of the object. |
contextmenu | Used to associate the menu element in the DOM to the given element as its context menu. |
coords | |
data | |
dataFld | Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object. |
dataFormatAs | |
dataPageSize | |
dataSrc | Sets or retrieves the source of the data for data binding. |
dir | Global attribute. Specifies the element’s text directionality. |
disabled | Prevents users from changing, clicking on, or submitting an element. |
download | Specifies that the target item is to be downloaded for offline viewing. |
face | Sets or retrieves the current typeface family. |
form | The form attribute specifies the parent form of an html form element. |
formAction | The formaction attribute specifies the URL of a file that will process the input control when the form is submitted. |
formEnctype | The formenctype attribute specifies how the form-data should be encoded when submitting it to the server. |
formMethod | The formmethod attribute defines the HTTP method for sending form-data to the action URL. |
formNoValidate | When present, it specifies that the <input> element should not be validated when submitted. |
frame | |
height | Specifies the height of the certain content elements in pixels. |
hidden | The hidden attribute is a boolean attribute. When specified on an element, it indicates that the element is not yet, or is no longer, directly relevant to the page’s current state, or that it is being used to declare content to be reused by other parts of the page as opposed to being directly accessed by the user. |
hideFocus | |
href | Sets or retrieves a destination URL or an anchor point |
hreflang | |
httpEquiv | |
id | The id attribute is used for identifying elements in a document. |
is | Describes the base element from which the element with this attribute is extended. |
label | |
language | Use the type attribute instead. Specifies the language of the script to be evaluated. May be omitted when using ECMAScript (also known as JavaScript). |
list | The list attribute refers to a <datalist> element specifying possible values to suggest for an input element. |
longdesc | Links an image to a description of its content, for enhanced accessibility |
loop | Sets or retrieves the number of times a sound or video clip will loop when activated. |
max (HTMLInputElement) | The max attribute specifies the maximum value for an <input> element. |
maxLength | The maxLength attribute sets an upper limit on the number of characters that can be entered in an input element. |
min | The min attribute specifies the minimum value for an <input> element. |
multiple | The multiple attribute indicates that the user is allowed to enter more than one value in an <input> element. |
name | |
name (frames) | |
name (meta object) | |
name (window) | |
name param element)) | |
noHref | |
noResize | |
noShade | |
noValidate | When present, it specifies that the form-data (input) should not be validated when submitted. |
noWrap | |
pattern | The pattern attribute specifies a regular expression that the <input> element’s value is checked against. |
placeholder | The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format). |
pluginspage | |
readonly | |
rel | Describes the relationship from the current document to the anchor specified by the href attribute. |
required | The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form. |
rev | |
rightMargin | |
role | |
rowSpan | |
rules | |
sandbox | |
scheme | |
scope | |
scroll | |
scrolling | |
security html attribute | |
select | One or more tokens that define the matching criteria for the distribution of child nodes of the shadow host. |
selected | |
shape | |
size | This article outlines the HTML attribute "size", which allows the user to specify a width in characters of an <input> element. |
size (control) | |
size (hr) | |
sizes | The sizes attribute is an extension of the image element. It provides additional image related information to the browser to help decide the most appropriate image to load based on the viewport. Most commonly used for delivering the best image for responsive images. It can only be used in conjunction with srcset |
span | |
src | |
src (iframe, embed, xml) | |
src (input, img) | |
src (script) | |
srcset | The srcset attribute is an extension of the image element. It provides additional image related information to the browser to help decide the most appropriate image to load. Most commonly used for delivering the best image for high device pixel ratio and responsive images. |
standby | A message for the browser to show while an object 's implementation and data load. |
start | |
start (ol) | |
step | Specify the increment for input with types number , time , or range |
style | Sets an inline style for the element. |
summary | |
tabIndex | Represents the tab order of an element. |
tabStop | |
target | Target is a link attribute, which defines where to open the link. |
title | |
topMargin | |
translate | The translate attribute indicates whether the element’s content and attribute values should be translated or not. |
type | The type attribute is used to define what sort of type an input or ordered list element is. |
type (button element) | |
type (param element) | |
type (script element) | |
type (select element) | |
type (textarea element) | |
type (ul,li,ol elements) | |
units | |
url | |
urn | |
useMap | |
vAlign | |
vAlign (table caption) | |
vLink | |
value (HTMLProgressElement) | |
value (button element) | |
value (input elements) | |
value (li element) | |
value (param element) | |
value (select, option element) | |
value (textarea element) | |
valueType | |
vcard name | |
[version](/html/attributes/version_(dom/version) | |
viewMasterTab | |
volume | |
vspace | |
width | Specifies the width, in pixels, of certain content elements. |
width (img, input elements) | |
width (merge candidate) | |
wrap | Sets the wrap style (soft, hard, or off) for a text element. |