What is the purpose of the HEAD and BODY tags?

A typical HTML structure is comprised of two distinct parts. The HEAD and the BODY.

In the <head> tag we store the HTML document’s information (metadata).

This information is not rendered. The website visitor cannot see it, unless she is able to delve into source code.

Document titles, character sets, styles, scripts, and information about how the page should be processed by the browser, are commonly defined in HEAD.

Within the <body> tag, on the other way, we specify the main content of an HTML document, the part presented to users, with the help of browsers either visually or audibly.

Example of an HTML document with <body> and <head>:

(click on the image to open in a new tab)

Although my blog doesn’t support comments, feel free to reply via email or X.