Page 58 - Code & Click - 7
P. 58
• <head> tag : The <head> tag is a
container tag that contains information
about the document, including its
title, style definitions, and document HTML Head
descriptions. The <head> tag is nested Document Section
between the opening and closing
Body
<html> tags. Section
• <title> tag : The <title> tag is a container
tag that specifies the title of a web page.
The <title> tag is nested between the opening and closing <head> tags.
• <body> tag : The <body> tag is a container tag that encloses all the tags and content to be
displayed on the web page. The <body> tag is entered below the closing </head> tag and
above the closing </html> tag.
Guidelines for Creating HTML Documents
Some guidelines to be followed while creating HTML documents are:
1. Tag names and attribute names are not case-sensitive.
2. Enclose the attribute values within double quotes.
3. Spaces between tags and content are not important. For example, <b> This text is bold </b>
and <b> This text is bold </b> are interpreted in the same way.
4. Do not use spaces between tag names and between the < and > signs. Thus, < body > or < body
> is incorrect, while <body> is correct.
WORKING WITH HTML DOCUMENTS 1
Creating and Saving HTML Documents
To create and save HTML documents using Notepad:
1. Open Notepad and type the code as shown in the
image.
2. In the File menu, click the Save option.
The Save As dialog box opens.
3. In the Filename box, type a name for the document
with the extension .html.
2
3
4
56