html attributes Flashcards
(165 cards)
accept
Specifies the types of files that the server accepts (only for type=”file”)
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
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 or the 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
charset
Specifies the character encoding
checked
Specifies that an element should be pre-selected when the page loads (for type=”checkbox” or type=”radio”)
cite
Specifies a URL which explains the quote/deleted/inserted text
class
Specifies one or more classnames 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