Last year I started on this article about HTML5. In that article I focused mainly on the various tags as far as the additions and removals since HTML 4.01/XHTML 1.0. Today I continue with HTML5 Tags’ Standard and Event Attributes. If you did not read the previous article you can find it here. I recommend starting off there before proceeding with this one.
With a few exceptions the following Standard Attributes apply to all the HTML5 tags. In no particular order, the Standard Attributes that were introduced in HTML5 are:
contenteditable
This has a value of either “true” or “false”.
Just as the name implies, this specifies that the user isn’t or is allowed to edit the content.
contextmenu
The value is a menu_id.
Basically it is the context menu for the element.
data-yourvalue
This has a non-specified value which can be anything appended to the label.
It is an author defined attribute. It must start with “data-”. It is good to note here that authors of HTML documents can define their own attributes.
draggable
This has a value of either “auto”, “true” or “false”.
This specifies whether a user is allowed to drag an element or not.
hidden
The label itself is the value
This specifies that the element is not displayed.
item
This value usually contains a URL or can be empty.
It is used to group elements.
itemprop
This value usually contains a url.
It is used to group elements.
spellcheck
This has a value of either “true” or “false”.
Specifies whether the elements contents must be checked for spelling or grammatical errors.
Related posts:
- A Run Down Of HTML5 (Part 1)
- Is it Safe to develop with HTML5?
- Pros and Cons of Adobe Flash Video Vs HTML5 Video
- More Fun Things To Do With Google Chrome (Part 2)






[...] Read: A Run Down Of HTML5 (Part 2). [...]