Page 25 - Modular_V1.1_Flipbook
P. 25
Web page in web browser
BASIC HTML TAGS
HTML provides various tags such as <HTML>, <HEAD>, <TITLE>, <BODY>, and many more.
Let's discuss these tags in detail.
The <HTML> Tag
The <HTML> tag tells the web browser that the text contained between <HTML> and </HTML>
is a web page and can be viewed using a web browser. Every web page coding must starts with
the <HTML> tag and ends with the </HTML> tag.
The <HEAD> Tag
The <HEAD> tag defines header area of your web page. The information given in <HEAD> tag
tells the computer that this information is not to be shown on the web page. The <HEAD> is
a container tag used in pair as <HEAD> and </HEAD>. Every web page coding must have its
header tag.
The <TITLE> Tag
The <TITLE> tag tells the web browser that the text contained between <TITLE> and </TITLE>
does not form part of the web page. It will be shown on the Title Bar of your web browser. The
use of <TITLE> tag is not mandatory. If you do not want to give title to your web page, you can
skip it. Your web browser will show file name and its path as title of your web page.
The <BODY> Tag
The <BODY> tag tells the web browser that the text contained between <BODY> and </BODY>
tags is to be shown on the web page. It is a container tag. The <BODY> tag has the following
attributes:
BGCOLOR: This attribute defines a colour to the background of your web page. It can be
used as under:
<BODY BGCOLOR="red">
TEXT: This attribute defines a colour to the text of your web page. It can be used as under:
<BODY TEXT="blue">
HTML—An Introduction 23

