Back to Class One page »
HTML Attributes Explained
Most HTML tags can have what are called attributes. There are many types of attributes. They always follow the same format though.
From Learning Web Design, P. 64
Things to remember:
- Attribute values should always be surrounded by quotation marks
- Many attributes are optional. Examples:
id
and class
- Some HTML tags require attributes to work properly. Two examples are
img
and a
.
Back to Class One page »