Tags often have attributes for further defining the element. In this how-to, you'll learn how to use attributes.
Attributes are name-value pairs that can be added
to the starting tag in an element. For example, one of the most
commonly used attributes is the
id attribute, which
looks like this:
The HTML specification defines a set of global attributes that can be used with most HTML elements. The global attributes include the following:
Other attributes are specific to different groups of elements, or to
just a single element. For example, the
src attribute, which specifies the path to the image file.
Elements can have multiple attributes, separated by spaces, like so:
<tagname att1="value" att2="value">Element content</tagname>
The order of attributes is not important.