What Is an XHTML Element Attribute?

Submitted by: Administrator
An element attribute is a predefined property about this element. Element attributes allows you to provide additional information to the element. Most XHTML elements have some common attributes. But many XHTML elements have their own specific attributes.

Here are some good examples of element attributes:

► <br/> - No attribute.
► <script type="text/javascript"> - One attribute: "type".
► <p class="sideNote"> - One attribute: "class".
► <meta name="Author" content="globalguideline.com"/> - Two attributes: ► <img src="ggl.gif" alt="ggl"/> - Two attributes: "src" and "alt".
Submitted by: Administrator

Read Online XHTML Job Interview Questions And Answers