Advance XHTML Programming Question:

What Is an XHTML Element Attribute?

Tweet Share WhatsApp

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 PDF Read All 26 XHTML Questions
Previous QuestionNext Question
Is XHTML Element Name Case Sensitive?What Is XHTML?