Home » HTML » HTML CSS » Question
  1. Choose the correct statement.
    1. In both traditional XHTML and HTML close tag for some elements is optional
    2. In both traditional XHTML and HTML close tag for some elements is not optional
    3. In traditional XHTML close tag for some elements is optional but not encouraged
    4. In traditional HTML close tag for some elements is optional but not encouraged
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.