Assignment1
This is a Heading
This is a paragraph.
This is another paragraph.
This is a paragraph with id para1.
This is another paragraph.
This is also a paragraph.
1.Change the color of all elements to "red".
2.Change the color of the element with id="para1", to "red".
3.Change the color of all elements with the class "colortext", to "red".
4.Change the color of all
and
elements, to "red". Group the selectors to minimize code.
Background
5.Set "background-color: linen" for the page, using an internal style sheet.
6.Set "background-color: linen" for the page, using an inline style.
7.Set the background color for the page to "linen" and the background color for to "lightblue".
Border
8.Set a "4px", "dotted" border for
.
9.Set the border color for
to "red".
10.Change the 3 border properties, so that they only show the border on the top side.
11.With the border property: Set the border for p to "10px", "solid" and "green".
Margin
12.Set the left margin of
to "20px".
13.Set all margins for to "25px".
14.Use the margin property to set the top and bottom margins for to "50px", and left and right margins to "25px".
15.Use the margin property to center align the element.
-------------------------------------------------------------------------------------------------