Prepare for the A Level Computer Science OCR Exam with engaging quizzes, detailed explanations, and effective study tips. Maximize your readiness and boost your confidence for exam day!

Practice this question and more.


What is represented by the root HTML tag?

  1. The header of the document

  2. The body of the document

  3. The beginning of the HTML code

  4. The end of the HTML document

The correct answer is: The beginning of the HTML code

The root HTML tag, which is represented by <html>, indicates the beginning of the HTML document. It serves as the top-level container for all other elements in an HTML document, including headers, body content, metadata, and more. The presence of the <html> tag signifies that what follows constitutes an HTML document, defining the scope for the entire structure of the webpage. The other options do not accurately represent the role of the root HTML tag. The header of the document is actually represented by the <head> tag, while the body of the document is encapsulated within the <body> tag. The end of the HTML document is denoted by the closing </html> tag, which comes after all the content. Thus, the root HTML tag's primary function is to mark the beginning of the HTML code.