Home » HTML » Html miscellaneous » Question
  1. Which syntax will cause IE to recognize section element?
    1. document.createElement(“section”)
    2. document.createElement(“<section>”)
    3. createElement.document(“section”)
    4. getElementById(“section”)
    5. None of these
Correct Option: A

document.createElement(“section”) will cause Internet Explorer to recognize section element all of a sudden. There is no any reason behind this working but it works. We do not even need to use node that is returned by that function.



Your comments will be displayed only after manual approval.