HTML Basic
HTML Advanced
| HTML Attributes |
|
Attributes provide additional information about HTML elements. HTML Attributes
Attribute ExampleHTML links are defined with the <a> tag. The link address is specified in the href attribute:
Always Quote Attribute ValuesAttribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.
HTML Tip: Use Lowercase AttributesAttribute names and attribute values are case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation. Newer versions of (X)HTML will demand lowercase attributes. HTML Attributes ReferenceA complete list of legal attributes for each HTML element is listed in our: Below is a list of some attributes that are standard for most HTML elements:
For more information about standard attributes: |
HTML Attributes
Tip: In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='John "ShotGun" Nelson'