Page 78 - Plus_V2.2_C6_Flipbook
P. 78
<HTML> Tag
The <HTML> tag represents the root of the HTML document and it is the container for all other HTML
elements except for <!DOCTYPE HTML> tag.
<HEAD> Tag
The <HEAD> tag is used to define the head section of the HTML document. The data inside this tag is
not displayed on the web page but the browsers use this information.
<TITLE> Tag
The <TITLE> tag mentions the title of the HTML document. This tag is written inside the <HEAD> tag. The
title must be text-only and this title appears on the browser’s title bar.
<BODY> Tag
The <BODY> tag defines the HTML document’s body which contains all the contents of an HTML
document such as paragraphs, images, headings, tables, links to other pages etc. Some of the
important attributes of <BODY> tag are: bgcolor, text, background.
By default, the background colour of the web page is white and text is black. We can change this by
using the above-mentioned attributes. The background attribute is used to mention the name of the
image file which can be set as background for the web page.
Now let us see an example to create a simple HTML document.
<!DOCTYPE HTML>
TITLE
<HTML>
<HEAD>
<TITLE> Learning HTML </TITLE>
BODY
</HEAD>
<BODY>
Creating a Web page using HTML
</BODY>
HTML code when viewed in the browser
</HTML>
Creating and Saving an HTML document
Now, let us understand how to create the HTML document and save it in Notepad.
The steps to create and save an HTML document are as follows:
Step 1: Open Notepad (text editor of Windows OS) application by selecting:
Start
Scroll down to letter W.
Windows Accessories
Notepad
76 Premium Edition-VI

