A Run Down Of HTML5 (Part 2)

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:

  1. A Run Down Of HTML5 (Part 1)
  2. Is it Safe to develop with HTML5?
  3. Pros and Cons of Adobe Flash Video Vs HTML5 Video
  4. More Fun Things To Do With Google Chrome (Part 2)

 

 

One Response to “A Run Down Of HTML5 (Part 2)”

Leave a Reply

    © 2003, 2010 Sobbayi's Tech Labs

Home Blog Home About Newsletter