1. Home
  2. Computer Science MCQs
  3. HTML
  4. What is the purpose of the HTML tag?

Added 20 Jan 2024

What is the purpose of the HTML <head> tag?

  1. To define the main content of the document
  2. To contain metadata about the document Correct answer
  3. To create a heading in the document
  4. To specify the background color of the page

Correct answer

B. To contain metadata about the document

13 views

MCQSEXAM

Explanation

The HTML <head> tag is a crucial element in an HTML document that is used to provide meta-information about the document. It does not contain the main content of the page that is visible to users but rather includes essential metadata, links to external resources, and other elements that help browsers and search engines understand and process the document. Here's an explanation of the main purposes of the <head> tag:

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs