Chapter 9 Notes

REPUBLIC OF NICARAGUA

 

Up

In addition to the notes you have taken for Chapter 9, the following notes are required to be recorded in your Notebook.

 

In the following rule, what is the size of the vertical margins between paragraphs?

p {margin-top: 15px; margin-bottom: 10px;}

-------------------------------------------------------------------------------------------------------------

Write a style rule for a <p> element that sets margins to 2 em, padding to 1 em, and a black, solid 1 pixel border.

p {margin-left: 2em; margin-right: 2em;

   padding-top: 1em;

   padding-bottom: 1em;

   border-top: solid thin;

   border-bottom: solid thin;

}

-------------------------------------------------------------------------------------------------------------

Write a style rule for an <h1> element that sets top and bottom padding to .5 em with a dashed thin red border on the bottom.

h1 {padding-top: .5em;

    padding-bottom: .5em;

    border-bottom: dashed red;

}

-------------------------------------------------------------------------------------------------------------

Write a style rule for a <p> element that creates left and right padding of 1 em, a left margin of 30 pixels, and a left black medium double border.

p {margin-left: 30px;

   padding-left: 1em;

   padding-right: 1em;

   border-left: solid medium double;

}

-------------------------------------------------------------------------------------------------------------

Which two elements are used to create lists in HTML? 

<ul> and <ol>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R. Stewart Braswell, Webmaster
Last Updated: 20 April 2012