Thursday, March 3, 2011

What is an attribute?

• HTML elements can have attributes
• Attributes provide additional information about an element
• Attributes are always specified in the start tag
• Attributes come in name/value pairs like: name="value"

Attribute Example
HTML links are defined with the anchor tag. The link address is specified in the href attribute:
This is a link

No comments:

Post a Comment