HTML and CSS Reference
In-Depth Information
Head and Body
Web pages are divided into two sections, the head and the body, with each section defined
with the <head> and <body> tags respectively.
The <head> tag contains information that describes the HTML document. The information
placed inside this tag is not displayed in the web browser window, but is instead used to
define specific functionalities that apply to the web page. It can contain a large amount of
information such as document title, scripts, styles, and meta information. This element can
be used only once in a web page. It starts immediately after the opening <html> tag and
ends directly before the <body> tag. It contains no specific attributes that are supported in
HTML5.
The body of our HTML document encloses the content of our web page. This is the part that
visitors will see, including all the content such as text, links, lists tables, and images. It con-
tains no specific attributes that are supported in HTML5. We will focus more on the body
element and its subsequent content in the following chapter.
To create the head and body sections:
1) Directly after the opening HTML tag type <head>.
2) Leave a few spaces for the contents of the head section.
3) Type </head>.
4) After the second </head> tag, type <body>.
5) Leave a few spaces for the contents of the web page.
6) Type </body>.
At this point your document should look like this:
<html>
<head>
</head>
 
Search WWH ::




Custom Search