Create a folder in your Exercises Folder on your harddrive. Name it firstname.lastname.CSS. You will put all files from this section in that folder. Do not turn in your folder to the server until you have completed all exercises(except the optional extra credit).
Exercise Local Styles- In this exercise you are going to apply some styles locally. You will add them to existing tags. If you need help, look at page 223.
Exercise Internal Style Sheet- You are going to use this same html document, but now create an internal style sheet in the <head> portion of this document. Using an internal style sheet:
Make the paragraph starting If you open up ... line up in the center with a left margin of 150 pixels and a right margin of 150 pixels. Make this paragraph italic(using styles!) and have a smaller line height. Exercise External Style Sheet- Open up a new Wordpad document and save it as mystyles.css into your Exercise CSS folder. Using an external style sheet:
And just to beat a dead horse, use the little rhollhead(right) as an icon to replace the numbers in this list(this list only, not all lists on this page).Exercise Browser Check- Open up your finished page in Netscape. Check all of the styling you did. Did it all work? Does it look exactly the same in both browsers. Write a paragraph summary(using a style, of course) directly underneath this paragraph. Make your paragraph have a maroon background with white text. Put a peach colored border around the paragraph. Also, make the text justify. Look up justify in the text alignment if you don't know what the word means.
If you open up a page done with Cascading Style Sheets in different browsers, you may notice slight differences in the way the pages are displayed. Each browser renders the page based on the code it was written with. Browsers are way more compatible today than they were a few years ago, however. As with any language, new or old, it is very critical to look at your work in different browsers.