• +91 9723535972
  • info@interviewmaterial.com

XHTML Interview Questions and Answers

Related Subjects

XHTML Interview Questions and Answers

Question - 81 : - What Is Wrong with My Tags?

Answer - 81 : -

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

content="Tutorials, FAQs and Tips on XHTML Documents.">
content="XHTML Tutorials, FAQs, Tips">

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

content="Tutorials, FAQs and Tips on XHTML Documents."/>
content="XHTML Tutorials, FAQs, Tips"/>

Note to HTML document authors: tag syntax in XHTML is the opposite to tag syntax in HTML. In XHTML, meta tag must be closed. But in HTML, meta tag can not be closed.

Question - 82 : - What Is Wrong with My
Tags?

Answer - 82 : -

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

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


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

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



NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners