The <head> element has nothing to do with headings; it only holds meta data. Meta data are analyzed (but not displayed) by the browsers. The entire <head> element is nested inside the <html> tag but placed before the <body> tag:
HTML file: | Displayed by browser: |
---|---|
<!DOCTYPE html>
<html> <head> <title>My First HTML</title> <meta charset="UTF-8"> </head> <body> <p>This is my first webpage</p> </body> </html> |
This is my first webpage |
Meta data means data about the item where the meta data is found. HTML meta data is data about the HTML document.