Html Attribute

Name Description Link
accept Specifies the types of files that the server accepts (only for )
accept-charset Specifies the character encodings that are to be used for the form submission
accesskey Specifies a shortcut key to activate/focus an element
action Specifies where to send the form-data when a form is submitted
align Specifies the alignment according to surrounding elements. Use CSS instead
alt Specifies an alternate text when the original element fails to display
async Specifies that the script is executed asynchronously (only for external scripts)
autocomplete Specifies whether the <form> or the <input> element should have autocomplete enabled
autofocus Specifies that the element should automatically get focus when the page loads
autoplay Specifies that the audio/video will start playing as soon as it is ready
bgcolor Specifies the background color of an element. Use CSS instead
border Specifies the width of the border of an element. Use CSS instead
charset Specifies the character encoding
checked Specifies that an <input> element should be pre-selected when the page loads (for or )
cite Specifies a URL which explains the quote/deleted/inserted text
class Specifies one or more class names for an element (refers to a class in a style sheet)
color Specifies the text color of an element. Use CSS instead
cols Specifies the visible width of a text area
colspan Specifies the number of columns a table cell should span
content Gives the value associated with the http-equiv or name attribute
contenteditable Specifies whether the content of an element is editable or not
controls Specifies that audio/video controls should be displayed (such as a play/pause button etc.)
coords Specifies the coordinates of the area
data Specifies the URL of the resource to be used by the object
data-* Used to store custom data private to the page or application
datetime Specifies the date and time
default Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate
defer Specifies that the script is executed when the page has finished parsing (only for external scripts)
dir Specifies the text direction for the content in an element
dirname Specifies that the text direction will be submitted