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 />