Advance XHTML Programming Interview Questions and Answers

XHTML Questions and Answers:

1 :: What Is an XHTML Element Attribute?

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".
4/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

2 :: Is XHTML Element Name Case Sensitive?

Yes, XHTML element names are case sensitive. All element names must be written in lower case letters.

Here are some valid and invalid XHTML element names:

► <html> - Valid name.
► <HTML> - Invalid name, must use lower case letters.
► <xhtml> - Invalid name, not defined by XHTML specification.
► <Body> - Invalid name, must use lower case letters.

Note to HTML document authors: HTML element names are not case sensitive. But XHTML element names are case sensitive. If you are converting existing HTML documents to XHTML documents, you will get a lots of syntax errors about upper case letters used in HTML tags.
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

3 :: How To Enter Element Content?

Most of XHML elements allow you to specify contents. But there are some XHTML elements that do not allow any contents. If an XHTML element does allow element content, you need to enter the content between the opening tag and the closing tag.

Here are some good examples of XHTML elements with contents:

► <title>My First XHTML Document</title>
► <p>A very long paragraph...</p>
► <h1>XHTML Tutorials by globalguideline.com/html</h1>
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

4 :: What Is Wrong with My <meta> Tags?

If you are converting existing HTML documents to XHTML format, you may find some <meta> tags are written as:

<meta name="Author" content="globalguideline.com">
<meta name="Description"
content="Tutorials, FAQs and Tips on XHTML Documents.">
<meta name="Keywords"
content="XHTML Tutorials, FAQs, Tips">

But all those <meta> tags are invalid in a XHTML document. They must be closed as:

<meta name="Author" content="globalguideline.com"/>
<meta name="Description"
content="Tutorials, FAQs and Tips on XHTML Documents."/>
<meta name="Keywords"
content="XHTML Tutorials, FAQs, Tips"/>

Note to HTML document authors: <meta> tag syntax in XHTML is the opposite to <meta> tag syntax in HTML. In XHTML, meta tag must be closed. But in HTML, meta tag can not be closed.
4/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

5 :: What Is Wrong with My <br> Tags?

If you are used HTML syntax, you may write your <br> tags as in the paragraph below:

<p>
I love the way you look at me,<br>
Your eyes so bright and blue.<br>
I love the way you kiss me,<br>
Your lips so soft and smooth.<br>
</p>

But that paragraph will be invalid as XHTML documents, because all 4 <br> are not closed. You should change it to:

<p>
I love the way you look at me,<br/>
Your eyes so bright and blue.<br/>
I love the way you kiss me,<br/>
Your lips so soft and smooth.<br/>
</p>
5/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

Rate This Category:
4/5 Rating (1 vote)
Place Your Question



Top: Advance XHTML Programming Interview Questions and Answers
Advance XHTML Programming Interview Questions and Answers

Top Frequently Asked XHTML Question
Frequently Asked XHTML Job Interview Question


Top Frequently opened Computer Programming Job Interview categories
Most popular Computer Programming Job Interview categories

Comments About Advance XHTML Programming Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about Advance XHTML Programming Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 20th of May 2012

    Webmaster Said

    Tell us what you feel about Advance XHTML Programming Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on Advance XHTML Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding Advance XHTML Programming Interview Questions and Answers
    Thank you.

  2. Keyanna (1 Comment) 27th of January 2012

    Keyanna Said

    That's way the bestest asnewr so far!

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: Advance XHTML Programming Interview Questions and Answers
Comments on Advance XHTML Programming Interview Questions and Answers

 
Top of Link batk to Advance XHTML Programming Interview Questions and Answers
Link batk to Advance XHTML Programming Interview Questions and Answers