You met the
element in the first example we created. Everything inside this element is shown inside the main browser windowBefore the < body> element you will often see a < head> element. This contains information about the page (rather than information that is shown within the main part of the browser window that is highlighted in blue on the opposite page). You will usually find a < title> element inside the < head> element.
The contents of the < title> element are either shown in the top of the browser, above where you usually type in the URL of the page you want to visit, or on the tab for that page (if your browser uses tabs to allow you to view multiple pages at the same time).
HTML | Result |
---|---|
< html> < head> < title>This is the Title of the Page< /title> < /head> < body> < h1>This is the Body of the Page< /h1> < p>Anything within the body of a web page is displayed in the main browser window.< /p> < /body> html> |
This is the Body of the PageAnything within the body of a web page is displayed in the main browser window. |