1.

Which syntax will cause IE to recognize section element?(a) getElementById(“section”)(b) createElement.document(“section”)(c) document.createElement(“section”)(d) document.createElement(“”)This question was addressed to me by my college director while I was bunking the class.Origin of the question is Search Engine Optimization & Old Browser vs New Elements in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer» RIGHT ANSWER is (c) document.createElement(“section”)

The BEST explanation: 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.


Discussion

No Comment Found

Related InterviewSolutions