HTML Attributes

Home » HTML Attributes
Wikis > HTML Attributes
An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element’s start tag.  An element’s start tag may contain any number of space separated attribute/value pairs.  Attributes can be:

When you use your tags you should do so in this order:

<tag attribute=”value”>(content to be modified by the tag)</tag>

like so:

As you can see in the example the attribute is in orange and the value is in green.

The most popular misuse of the term “tag” is referring to alt attributes as “alt tags”. There is no such thing in HTML. Alt is an attribute, not a tag.