Get all the attributes used in html along with it's description and examples.
Attribute
Description
Example
accept
Specifies the types of files that the server accepts for file input.
Run
accept-charset
Specifies the character encoding used when form data is submitted.
Run
accesskey
Defines a keyboard shortcut to activate or focus an element.
Run
action
Specifies the URL to which the form data should be submitted.
Run
align
Specifies the alignment of an element (deprecated in HTML5; use CSS instead).
Run
alt
Provides alternative text for an image when it cannot be displayed.
Run
async
Indicates that the script should be executed asynchronously.
Run
autocomplete
Specifies whether an input field should have autocomplete enabled or disabled.
Run
autofocus
Specifies that an element should automatically get focus when the page loads.
Run
autoplay
Specifies that audio or video should start playing automatically.
Run
bgcolor
Sets the background color of an element (deprecated in HTML5; use CSS instead).
Run
border
Specifies the border width around an element (deprecated in HTML5; use CSS instead).
Run
buffered
Contains the time ranges of the media resource that have been buffered.
Run
challenge
Specifies the key name of the challenge sent to the server (for `<keygen>`).
Run
charset
Specifies the character encoding of an external script or resource.
Run
checked
Specifies that an input element should be pre-selected when the page loads.
Run
cite
Specifies the source URL of a quote or citation.
Run
class
Defines one or more class names for an element to be targeted with CSS or JavaScript.
Run
code
Specifies the computer code within the `<code>` element.
Run
codebase
Specifies the base URL for the `<object>` element (deprecated in HTML5).
Run
color
Specifies the text color of an element (deprecated in HTML5; use CSS instead).
Run
cols
Specifies the visible width of a `<textarea>` element, in columns.
Run
colspan
Specifies the number of columns a table cell should span.
Run
content
Provides the value for a meta tag's metadata.
Run
contenteditable
Specifies whether an element is editable by the user.
Run
contextmenu
Specifies a context menu for an element.
Run
controls
Specifies that audio or video should have player controls displayed.
Run
coords
Defines coordinates for an area element in an image map.
Run
crossorigin
Specifies how the element should handle cross-origin requests.
Run
data-*
Allows storing custom data private to the page or application.
Run
datetime
Specifies date and time information for a specific element.
Run
default
Specifies that a track should be enabled by default in a `<video>` or `<audio>` element.
Run
defer
Indicates that the script should be executed after the page has finished parsing.
Run
dir
Specifies the text direction of the content.
Run
dirname
Specifies the name of the input field that contains direction information.
Run
disabled
Specifies that an input element should be disabled.
Run
download
Specifies that the target should be downloaded when a user clicks on the link.
Run
draggable
Specifies whether an element is draggable by the user.
Run
enctype
Specifies the content type of the form data when submitting it to the server.
Run
for
Associates a `<label>` element with a form control (e.g., `<input>`, `<select>`).
Run
form
Specifies the form element that an input element belongs to.
Run
formaction
Specifies the URL to which the form data should be submitted.
Run
formenctype
Specifies the content type of the form data when submitting it to the server.
Run
formmethod
Specifies the HTTP method used when submitting a form.
Run
formnovalidate
Specifies that a form should not be validated upon submission.
Run
headers
Specifies the header cells a data cell is associated with in a table.
Run
height
Specifies the height of an element (e.g., `<img>`, `<iframe>`).
Run
hidden
Specifies that an element is not yet, or is no longer, relevant.
Run
high
Specifies the upper bound of a gauge or meter element.
Run
href
Specifies the URL of a hyperlink (e.g., `<a>`, `<link>`).
Run
hreflang
Specifies the language of the linked document.
Run
http-equiv
Provides an HTTP header for the information/value of the meta element.
Run
id
Defines a unique identifier for an element to be targeted with CSS or JavaScript.
Run
imagesrcset
Specifies multiple sources for an image, allowing responsive image loading.
Run
inputmode
Specifies the preferred input method for an element.
Run
integrity
Specifies the integrity checksum of a resource, such as a script or stylesheet.
Run
intrinsicsize
Specifies the intrinsic size of an image for better loading performance.
Run
is
Specifies a custom element's tag name in the context of a custom element definition.
Run
ismap
Specifies that an image is part of a server-side image map.
Run
itemprop
Specifies the property name for an element in the context of microdata.
Run
keytype
Specifies the type of cryptographic key used in a `<keygen>` element.
Run
kind
Specifies the kind of text track in a `<track>` element.
Run
label
Provides a label or name for an element.
Run
lang
Specifies the primary language of the content.
Run
language
Defines the script language for the content in a `<script>` element (deprecated).
Run
list
Refers to a `<datalist>` element to provide auto-completion options for an `<input>`.
Run
loop
Specifies that audio or video should loop and play repeatedly.
Run
low
Specifies the lower bound of a gauge or meter element.
Run
manifest
Specifies the URL of the cache manifest file.
Run
max
Specifies the maximum value for an `<input>` element.
Run
maxlength
Specifies the maximum number of characters allowed in an input field.
Run
media
Specifies the media query for linked external resources (e.g., `<link>`, `<source>`).
Run
method
Specifies the HTTP method used when submitting a form (e.g., GET or POST).
Run
min
Specifies the minimum value for an `<input>` element.
Run
minlength
Specifies the minimum number of characters required in an input field.
Run
multiple
Specifies that an input element can accept multiple values.
Run
muted
Specifies that audio should be muted by default.
Run
name
Defines a name for an element to be submitted to the server.
Run
novalidate
Specifies that a form should not be validated upon submission.
Run
open
Specifies that details of a `<details>` element should be visible by default.
Run
optimum
Specifies the optimal value of a gauge or meter element.
Run
pattern
Specifies the regular expression pattern that an `<input>` element's value must match.
Run
ping
Specifies a list of URLs to be notified when a user follows a hyperlink.
Run
placeholder
Provides a hint or example text for an input field when it is empty.
Run
poster
Specifies an image to be shown while a video is downloading or before playback.
Run
preload
Specifies how a media resource should be preloaded for better performance.
Run
radiogroup
Specifies the name of the group of radio buttons to which an `<input>` belongs.
Run
readonly
Specifies that an input field is read-only and cannot be edited.
Run
rel
Specifies the relationship between the current document and the linked resource.
Run
required
Specifies that an input field must be filled out before submitting a form.
Run
reversed
Specifies that the order of a list should be reversed.
Run
rows
Specifies the visible number of lines in a `<textarea>` element.
Run
rowspan
Specifies the number of rows a table cell should span.
Run
sandbox
Specifies restrictions for the content within an `<iframe>` element.
Run
scope
Specifies the scope of a header cell in a table.
Run
scoped
Specifies that styles defined within a `<style>` element apply only to the parent document.
Run
selected
Specifies that an option within a `<select>` element should be pre-selected.
Run
shape
Specifies the shape of an area element in an image map.
Run
size
Specifies the width of an `<input>` element (for some input types) or the number of visible options in a `<select>` element.
Run
sizes
Specifies the size variations for responsive images.
Run
slot
Specifies the name of the slot that a `<slot>` element is assigned to in a shadow tree.
Run
span
Specifies the number of columns that a table cell should span.
Run
spellcheck
Specifies whether an element's spelling and grammar should be checked.
Run
src
Specifies the URL of a media resource, script, or image.
Run
srcdoc
Specifies the HTML content of an `<iframe>`.
Run
srclang
Specifies the language of the text track in a `<track>` element.
Run
srcset
Specifies multiple sources for an image, allowing responsive image loading.
Run
start
Specifies the starting value of a numbered list.
Run
step
Specifies the step value for an `<input>` element with a numeric or range type.
Run
style
Specifies inline CSS styles for an element.
Run
tabindex
Specifies the tabbing order of an element within the document.
Run
target
Specifies where to open linked resources or forms.
Run
title
Provides additional information about an element, often displayed as a tooltip.
Run
translate
Specifies whether the content of an element should be translated or not.
Run
type
Specifies the type of an `<input>` element or the media type of a linked resource.
Run
typemustmatch
Specifies that the resource specified by `src` must be of the same type as the current document.
Run
usemap
Specifies an image map to associate with an `<img>` element.
Run
value
Specifies the initial value of an `<input>` element.
Run
width
Specifies the width of an element (e.g., `<img>`, `<iframe>`).
Run
wrap
Specifies how the text in a `<textarea>` element should be wrapped for display.
Run