1.

Which of the following is not a difference between HTML and XHTML?(a) Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”(b) Charset in both html and xhtml is “text/html”(c) Tags and attributes are case-insensitive in HTML but not in XHTML(d) Special characters must be escaped using character entities in XHTML unlike HTMLThe question was posed to me in examination.The origin of the question is Traditional HTML and XHTML topic in section HTML Fundamentals of HTML

Answer»

The correct ANSWER is (b) Charset in both html and xhtml is “text/html”

To elaborate: HTML is CASE insensitive while XHTML is case sensitive. In XHTML, SPECIAL characters can be escaped using CHARACTER entites but not in HTML. Charset in HTML is “text/html” where as it is “application/xml+xhtml” for XHTML.



Discussion

No Comment Found

Related InterviewSolutions