HTML Tags & Attributes
If HTML tags are the nouns of a web page, attributes are the adjectives. They describe the element's behavior, appearance, and identity.
The Anatomy of a Tag
A standard HTML element consists of a start tag, content, and an end tag. Attributes are always placed in the start tag.
Common Attributes
The class attribute specifies one or more classnames for an element (used by CSS and JavaScript). The id attribute specifies a unique id for an HTML element.
View Full Transcript+
This section contains the full detailed transcript covering: Tag syntax, the name/value pair structure of attributes, the difference between class (multiple items) and id (unique item), and global attributes like style and title.
