HTML Attributes
Attributes provide additional information
to an HTML element.
HTML Tag Attributes
HTML tags can have attributes. Attributes provide additional information
to an HTML element.Attributes always come in name/value pairs like this: name="value".
Attributes are always specified in the start tag of an HTML element.
Attributes Example 1:
<h1> defines the start of a heading.
<h1 align="center"> has additional information about the alignment.
Try it yourself:
Center aligned heading
Attributes Example 2:
<body> defines the body of an HTML document.
<body bgcolor="yellow"> has additional information about the background
color.
Try it
yourself: Background color
Attributes Example 3:
<table> defines an HTML table. (You will learn more about HTML tables
later)
<table border="1"> has additional information about the border around
the table.
Use Lowercase Attributes
Attributes and attribute values are case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase
attributes/attribute values in
their HTML 4 recommendation, and XHTML demands
lowercase attributes/attribute values.
Always Quote Attribute Values
Attribute values should always be enclosed in quotes. Double style quotes are the most common,
but single style quotes are also allowed.
In some rare situations, like when the attribute value itself contains
quotes, it is necessary to use single quotes:
name='John "ShotGun" Nelson'
 |
 |
 |
 |
|
The Ektron Intranet
lets you do everything you need to do on your corporate intranet and everything you want to do... all with just one application.
What can you do with the Ektron Intranet? |
 |
Navigate through content, documents, assets, colleagues and workgroups quickly and intuitively with enterprise search |
 |
Communicate with friends and colleagues with forums, message boards and corporate blogging using the new Social Networking Platform |

|
Utilize the extensive out-of-the box features or customize your site through Ektron CMS400.NET's open architecture |
 |
Promote collaboration in your organization through project workspaces where others can efficiently find information and work together |
 |
Author/edit content, manage navigation, menus, audit trails, workflow and approvals with the best in breed Content Management |
|
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
|
|
 |
TAKE THE VIDEO TOUR |
 |
or download a FREE TRIAL today. |
|