Professional Documents
Culture Documents
Web Graphics: Designing The Body Section
Web Graphics: Designing The Body Section
Web Graphics: Designing The Body Section
DESIGNING THE
BODY SECTION
HORIZONTAL RULE
1
PARAGRAPH
LINK COLORS
link.
Example:
3
DESIGNING THE BODY SECTION
HEADING PRINTING
The heading can be printed using any one of
the following six tags, <h1>, <h2>, <h3>,
<h4>, <h5>, <h6>.
4
ALIGNING THE HEADING:
The heading can be aligned
left
right
center and
justified.
The default alignment is left.
The following HTML documents shows the
working of Heading Tags.
5
Example 1:
H1toH6.html
<html>
<head> <title> Heading Printing </title> </head>
<body bgcolor = "yellow">
<h1> WELCOME TO HTML (H1) </h1>
<h2>Kongu Arts and Science College (H2)<h2>
<h3>Erode (H3)</h3>
<h4>Dept. of Computer Applications (H4) </h4>
<h5>II B.C.A A (H5)</h5>
<h6>WEB GRAPHICS (H6)</h6>
</body>
</html 6
H1toH6.html
Example 2:
H1toH6 align.html
<html>
<head> <title> Heading Printing with Alignment</title>
</head>
<body bgcolor = "yellow">
This a sample HTML code to print the Headings with
various alignments.
<h1 align = "center"> WELCOME TO HTML </h1>
<h2 align = "left">Kongu Arts and Science College<h2>
<h2 align = "right">Erode </h3>
<h3 align = "justified">Dept. of Computer Applications,
II B.C.A A, WEB GRAPHICS </h4>
</body> </html> 7
H1toH6 ALIGN.HTML
HORIZONTAL RULE
A horizontal line can be drawn using <hr> tag.
8
<html>
<head> <title> HR Printing with Alignment</title> </head>
<body>
This a sample HTML code to print the Headings with various
alignments.
<hr>
<h1 align = "center"> WELCOME TO HTML </h1>
<hr size = "3" width = "75%">
<h2 align = "left"> Kongu Arts and Science College</h2>
<hr size = "2" width = "25% ">
<h2 align = "right">Erode </h3>
<hr size = "4" width = "50%”>
<h3 align = "justified">Dept. of Computer Applications, II B.C.A
A, WEB GRAPHICS </h4>
<hr align = “center” size = "5" width = "70%" src= “Des.bmp”>
</body> </html> 9
HR-ALIGN.html
PARAGRAPH
12
Example for Creates white space between words :
<p>
An HTML element is defined by
a starting tag. If the element
contains other content, it ends with a closing tag,
where the element name is preceded by a forward
slash.
</p>
Example for Stops the browser from breaking a line
in the wrong place :
<p> So here paragraph is an HTML element. The H1
is another HTML element. T here are some HTML
elements which don't need to be closed, such as img,
HR and BR elements. These are known as void 13
elements. </p>