Professional Documents
Culture Documents
• The different types of basic tags that are used to design a web page
are described below.
1. HTML Tag :- It is necessary to write the code for an HTML page
between <HTML> and </HTML>. Here opening tag tells the
browser that ‘This is the start of an HTML document’ and closing
tag of HTML tells ‘This is the end of HTML document’.
2. Head Tag:- The headlines tags are used to display headings on the
web page in various sizes. These tag can provide main and sub
headings. HTML documents supports six levels of heading tag from
<h1> to <h6>.
3. Title Tag :- The title tag is used inside the <head> tag to mention
title.
4. Body Tag :- All the content to be displayed on the web page has to
be written within the body tag. So whether text, headlines, textbox,
checkbox or other any possible content every thing to be displayed
must be kept within the <BODY> tag.
Some major Attributes
1. BGCOLOR :- It can be used for changing the background color of the
page. By default the background color is white.
syntax :- <BODY BGCOLOR=“VALUE”>
eg :- <body bgcolor=“silver”>
2. Background Image:- It is used for specifying the image to be displayed
in the background of the page.
syntax :- <BODY BACKGROUND = “VALUE>
eg :- <body background=“photo.jpg”>
3.Background sound :- sound can be embedded in the web page .
syntax :- <BGSOUND src= soundURL loop=value>
eg :- <BGSOUND src=“music.mp3” loop =infinate>
4. F OREGROUND COLOR (TEXT COLOR):- It is ued for specifying the
color of the text displayed on the page.
Syntax :- <BODY BGCOLOR=“VALUE” TEXT =“VALUE”>
e.g :- <body bgcolor=“silver” text =“yellow”>
Formatting Heading
• Headers are used to specify the headings of sections or sub sections in a document.
Depending on the desired size of the text, any six available levels (<H1> to <H6>) of
headers can be used.
<html>
<head>
<title>
This is my first web page.
</title>
</head>
<body>
<h1> This is my first webpage.</h1>
<h2> This is my first web page.</h2>
<h3> This is my first webpage.</h3>
</body>
</html>
Attributes of heading Tag
• The headings are generally left aligned. But,
we can change the alignment to the right or
center by using ALIGN attribute of heading
tag. The syntax is;
<H1 ALIGN=“……..”> introduction </H1>
• Here, the space within the inverted commas
can contain either LEFT, CENTER or RIGHT.
Text Formatting Tags
• Every text on a web page can be formatted using
various tags. They can be related with font, setting,
alignment, setting columns, horizontal line, color,
superscript, subscript, etc. Here explained some
commonly used text formatting tags.
Font setting Tag:- Font setting tag in HTML can be used
for text style specifications. It provides the flexibility
of changing the characteristics of the font such as
face, size and color. Every browser has default font
setting that governs the default font face , size and
color. Normally, the default is Times New Roman
12pt with the color being black.
• The tag for font setting is <FONT> …. </FONT>.it has major three
attributes.
1. FONT FACE:- it is used to set the font type of the text. The syntax is
<FONT FACE=“value”> Text content </FONT>
Here font face value can be Arial, comic sans, preeti etc.
2. FONT SIZE:- This attribute is used to specify the size of the text. The
syntax is
<FONT SIZE=“value”> Text content </FONT>
Font can be displayed in any of the 7 sizes. Here <FONT SIZE=“1”
indicates 8pt size, 2 indicates 10 point and 3 indicates 12point and
so on.
3. FONT COLOR :- This attribute is used to specify the coloor of the
text. By default the color of the text is black. The syntax is
<FONT COLOR =“value”> Text content </FONT>
The possible color can be red, green, yellow etc.
Paragraph formatting tag