Monday, August 1, 2011

HTML Attributes





A HTML Attribute is the property of an HTML element.

Basically most of the HTML Elements has following as their attributes

Name
Id
Style

Name is the name given to identify the particular element and Id is used when javascript or jquery is implemented.

Other common attributes are

Height
Width
Border


Example the anchor tag has the attribute as "href" which requires user to specify the specified url.



Almost all the HTML elements has the attribute which in turn will have a value.

No comments:

Post a Comment