102k views
2 votes
What is a primary difference between the header section of a document and the body

The body is displayed on the web page and the header is not.
The header is displayed on the web page and the body is not
The tag for the body is self-closing, but the tag for the header must be closed.
The tag for the header is self-closing, but the tag for the body must be closed.

What is a primary difference between the header section of a document and the body-example-1
User Mlrawlings
by
5.0k points

1 Answer

7 votes

Answer:

The answer to this question is given below in the explanation section.

Step-by-step explanation:

The header and body are parts of the web page. As, you know that in the header section, we define mostly script and title information for the page. While the body section contains the page content.

In this question, the given options are:

  1. The body is displayed on the web page and the header is not.
  2. The header is displayed on the web page and the body is not
  3. The tag for the body is self-closing, but the tag for the header must be closed.
  4. The tag for the header is self-closing, but the tag for the body must be closed.

The correct answer to this question is 1:

The body is displayed on the web page and the header is not.

While the other options are not correct because:

The body always displays the content of the page while the header does not display on the web page. And, also all body and header tags must be closed.

User Markus Penguin
by
5.5k points