1.

Which is the root element in a HTML document?(a) HTML(b) HEAD(c) SCRIPT(d) BODYThis question was posed to me during an online interview.I'd like to ask this question from Embedding JavaScript in HTML in portion Server-Side and Client-Side Scripting of JavaScript

Answer»

The correct ANSWER is (a) HTML

For explanation I would SAY: The “html” TAG is the root element of any HTML document regardless of it containing a JavaScript CODE or not. Body tag includes the main CONTENT that is shown on the website.



Discussion

No Comment Found

Related InterviewSolutions