0% found this document useful (0 votes)
10 views2 pages

CSS Part 1 (Ans)

The document provides CSS practice solutions, including how to set a background color in the body tag and create a separate CSS file linked to HTML. It includes specific styling for various HTML elements such as paragraphs, headings, links, buttons, text areas, and spans. Additionally, it instructs to use a span element to apply text decoration to the word 'Ozymandias'.

Uploaded by

soyamkayasth411
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

CSS Part 1 (Ans)

The document provides CSS practice solutions, including how to set a background color in the body tag and create a separate CSS file linked to HTML. It includes specific styling for various HTML elements such as paragraphs, headings, links, buttons, text areas, and spans. Additionally, it instructs to use a span element to apply text decoration to the word 'Ozymandias'.

Uploaded by

soyamkayasth411
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CSS (Part 1)

megharjmk88@gmail.com
Practice Solutions

Ans 1
Simply add the background color in the body tag.

<body style="background-color: wheat">

Ans 2 to Ans10
Create a separate CSS file and link it with your html code.
In the CSS file write the following code :

p {
color: brown;
text-align: center;
line-height: 30px;
}

h1 {
text-align: center;
color: red;
font-family: Georgia;
}

h3 {
text-align: center;
color: black;
}

megharjmk88@gmail.com
a {
text-decoration: none;
color: green;
}

button {
background-color: white;
color: blueviolet;
}

textarea {
color: black;
}

span {
text-decoration: underline;
}

In Qs 10, put the word ‘Ozymandias’ inside a span element. And then set the property
text-decoration for the span element.

As shown in the line:

My name is <span>Ozymandias</span>, King of Kings;<br />

You might also like