Universal attributes for HTML elements

HTML elements has several attributes that can be added to almost any HTML elements in included in the <body>..</body> element of a web page.
idto attach unique identifier to the element - unique identifiers for the element (id="id1")
classto assign a class to the element - space separated identifiers (eg: class="class1 class2..")
styleto assign style to an element - sequence of styles (style="font-style:bold")
titleto assign a tooltip to the element - double quoted string (title="click here")
langto define the language for the content of the element - double quoted language identifier (lang="en")
dirto defrine a rendering direction of the content for the element- "ltr" (left to right), "rtl" (for right to left)
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +