Advance XHTML Programming Question:

Download Job Interview Questions and Answers PDF

What Is an XHTML Element Attribute?

XHTML Interview Question
XHTML Interview Question

Answer:

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".

Download XHTML Interview Questions And Answers PDF

Previous QuestionNext Question
Is XHTML Element Name Case Sensitive?What Is XHTML?