| Home > HTML, Attributes
< Previous PageHTML, Attributes
Attributes provide additional information about HTML elements. Attributes provide additional information about HTML elements. They are always specified in the start tag.
Attributes come in name/value pairs like: name="value"
HTML links are defined with the <a> tag. The link address is specified in the href attribute
<a href="index.html">Home Page</a>
Always Quote Attribute Values
Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed. In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes:
name='John "ShotGun" Nelson'
More info at w3schools.com
|
| |