1.

Choose the correct statement.(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) In both traditional XHTML and HTML close tag for some elements is not optional(d) In both traditional XHTML and HTML close tag for some elements is optionalI got this question in an international level competition.My query is from Traditional HTML and XHTML in chapter HTML Fundamentals of HTML

Answer»

Right choice is (b) In traditional HTML close tag for some elements is optional but not encouraged

The EXPLANATION: In XHTML all elements MUST always be closed and empty elements ALSO be closed. XHTML close TAGS are not optional neither they are encouraged. HTML is case insensitive and thus closing tags for some elements including empty elements is optional and is ignored by browsers.



Discussion

No Comment Found

Related InterviewSolutions