State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”
A. True
B. False
Answer: Option B
Solution (By Examveda Team)
HTML 4.01 and XHTML are different versions of HTML with slightly different rules.HTML 4.01 is more lenient and allows some coding errors.
XHTML is stricter and requires well-formed code, meaning elements must be properly nested and closed.
You can't directly combine parts of an XHTML document with parts of an HTML 4.01 document in the same file and expect it to work correctly in all browsers. The browser will likely try to interpret the entire document using one set of rules, which will lead to errors or unexpected behavior.
Therefore, the statement "We can intermix XHTML and HTML 4.01 documents" is False.
Join The Discussion
Comments (1)
Choose the correct statement of HTML
A. In traditional XHTML close tag for some elements is optional but not encouraged
B. In traditional HTML close tag for some elements is optional but not encouraged
C. None of the mentioned
D. In both traditional XHTML and HTML close tag for some elements is optional
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. None of the mentioned
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 HTML
What indicates the content in file is HTML when delivered on the network.
A. The extension of the file “.html”
B. The “content-type” header
C. Both “.html” extension and “content-type” header
D. None of the mentioned

Option B is correct