Q. Design a webpage using CSS. Set text indent, text-decoration, font-name and font-style for the heading. Heading should be displayed in navy color, set text-color, background-color and font-size for paragraph. Between two paragraph displays an image set border attributes for the image. A margin of 50px along all directions must be kept for the webpage.

Solution:
</span><span style="font-size: 18pt; font-family: "Times New Roman", serif;"> States </span><span style="font-size:18.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family: "Times New Roman";color:blue">

<html>
<head>
<title> States </title>
<style type=text/css>
h1
{
    text-indent: 35px;
    text-docoration: underline;
    color: navy;
    font-family: magneta;
}
p
{
    background-color: cyan;
    color: navy;
    font size: medium;
}
img
{
border-style: double;
border-color: red;
border-width: 5px;
}
body
{
    margin: 50px 50px 50px 50px;
}
</style>
</head>
<body>
<h1> Maharashtra </h1>
<p> Maharashtra is a state in the western region of the India……….
<img src=maha.jpg width=150 height=150>
<h1> Rajasthan </h1>
<p> Rajasthan literally is the land of kings. It the India’s Largest State…………
</p>
<img src=rajas.jpg width=150 height=150>

</body> </html>






 

Post a Comment

0 Comments