Common Attributes

Read this tip to make your life smarter, better, faster and wiser. LifeTips is the place to go when you need to know about Tags Defined and other Html topics.

What is a tag attribute?

Common Attributes

In an effort to avoid redundancy, I'll list here the 6 most common tag attributes (more than 85% of html tags list these attributes). These attributes all have default values, which means that you don't have to list them unless you want to change thier values.

ID="NAME" - Document-wide identifier that can be used to give an HTML element a unique identifier within a document.

CLASS="TEXT" - A list of class names (seperated by commas), that indicates that the element belongs to a specific class or classes of style definitions.

STYLE="TEXT" - Provides rendering information specific to this element.

TITLE="TEXT" - Defines an advisory title that will display additional help.

DIR="(LTR|RTL)" - Indicates the direction that the text will be read, Left to Right or Right to Left.

LANG="NAME" - Specifies the language that the element and its content are written in.

   

Comments

Nobody has commented on this tip yet. Be the first.



Name:


URL: (optional)


Comment:


Not finding the advice and tips you need on this Html Tip Site? Request a Tip Now!


Guru Spotlight
Phyllis Serbes