Element with Multiple Attributes

Description

You can apply multiple attributes to an element by separating them with one or more space characters.

Example

The following code adds multiple attribute to the a element.


I like <a class="myClass" href="/index.htm" id="myID">HTML</a> and CSS.

Note

The order of the attributes is not important.

In the code above both class and id are global attributes.

You can mix global attributes with the element's specific attributes.





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed