You are on page 1of 3

Priyankar Paul 1

29SCS124

Ex. No: 11b


06/04/2011 INTERNAL CASCADING

Aim:
To design a HTML page using internal cascading.

Description:
Internal style sheet

 The definition is written once in the head part of a page.

 It must be written on every page that requires that style.

 Because of the above it is ideal if only 1 page is going to be used for this style.

 The styles can then be used more than once throughout the page.

 The Internal style sheet is defined within the head section.

The syntax is as shown below

<head>

< style type="text/css">

Your Style definitions go here

< /style>

< /head>
Priyankar Paul 2
29SCS124

Program:

<html>
<head>
<title>INTERNAL CSS</title>

<style>
p
{
font-family:Arial; font-size:24px; background-color:#341276;
}
h1
{
font-family: Times New Roman, Helvetica, sans-serif; font-size:30px; font-style: italic; text-
align:center;
}
a:link{color:#330066}
a:alink{color:#0000CC}
a:vlink{color:#660000}
</style>

</head>
<body><br>
<h1>India</h1><br>
<p style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px;
padding-top: 0px; padding-right: 0px; padding-bottom: 0px;
padding-left: 0px; font: normal normal normal 15px/20px Georgia, 'Times New Roman',
Times, serif; display: block; color: rgb(255, 255, 255);
text-align: justify; ">
<br/>
India, officially the Republic of India, is a state in South Asia.
It is the seventh-largest country by geographical area, the second-most populous country with
over 1.2 billion people, and the most populous democracy in the world.
Bounded by the Indian Ocean on the south, the Arabian Sea on the southwest, and the Bay of
Bengal on the southeast, it shares land borders with Pakistan to the west; Bhutan, the People's
Republic of China and Nepal to the northeast; and Bangladesh and Burma to the east.
In the Indian Ocean, India is in the vicinity of Sri Lanka and the Maldives; in addition, India's
Andaman and Nicobar Islands share a maritime border with Thailand and Indonesia.
<br/>
<br/>
</p>
</body>
</html
Priyankar Paul 3
29SCS124

Output:

Result:

Thus the HTML program using internal cascading was done and its output was verified.

You might also like