Page 75 - Computer - 7
P. 75
• <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. However, it is recommended to use
lowercase for tag names and attribute names.
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.
Knowledge Discovery Subject Enrichment
If you do not enclose a tag within ‘<’ ‘>’, a web browser will assume your command as text instead of an
HTML command. For example, a web browser would consider <html> as a tag and HTML as text.
WORKING WITH HTML DOCUMENTS 1
You can create, save, open, edit, and view HTML documents.
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
4. Click the Save button.
Notepad saves the document and its name is
displayed on the Title bar.
73