Welcome to Our Free Tutorial!

HTML Attributes!

HTML tags contain one or more attributes. Attributes are added to a tag. Attributes consist of name and value separated by
an equals(= sign).

Attributes is additional information about HTML elements.

1. HTML Elements have many attributes.
2. Attributes always specified the start tag.
3. Attributes provide additional information about an element.
4. Attributes in name/value like:name="value"

Attribute values must always enclosed in quotes.

ClassClass NameName of class name for an element
IdIdSpecifies a unique id for an element
stylestyle_definitionSpecifies style for an element
Titletooltip_text Specifies Text information about an element.


<body style="background-color:blue;">
The style of the Browser body background color is blue.

HTML Text Links - Another Example:-

Here is an another example of adding an attribute in HTML tag.
<a href="http://www.aonestudy.com">aonestudy Free Tutorial </a>


aonestudy Free Tutorial