The instructions for this lab will be much more vague than the last lab because you (presumably) are much better at working with XHTML than before. Feel free to refer back to lab 1, to ask a neighbor, or to ask me for help.
Basing your work off of the XHTML strict template that we've used before, do the following:
You might notice that once you've applied your custom link color and once you have visited the link's page, and reloaded your own page, then the link is no longer the custom color you want it to be. This is because the <a> tag has more than 1 state. A link's state will determine how it will display:
So, simply specify how each state should be displayed. Here is some example CSS code that makes unvisited links blue and visited links black. When the user hovers over links on the page, they will turn red. Technically, each of these states is called a "pseudoclass." We will learn CSS classes (and more pseudoclasses) later on.
a:link { color: blue } a:visited { color: black } a:hover { color: maroon }
Now, add the CSS code to make your links appear as you intended. You can use any CSS attribute at all. For example, hovered links can become underlined and bold, and visited links can change color to "blend in" to the text by becoming the normal text color.
Another CSS attribute that we can change is font size. For example, we can force text that the user hovers over to become slightly larger, so that it sticks out more. To do this, we set the font-size CSS property:
p { font-size: 14pt; }
You can specify font sizes in terms of points (pt). This is what you're probably most used to. We'll review others later.
Go ahead and change the font size of at least one type of element.
There's a CSS property called line height (e.g., "p { line-height: 2.0; }"). This lets you create paragraphs that are single spaced (line height of 1), double spaced (line height of 2) or any value in between. You can even create paragraphs whose line height is 0. Go and make your paragraphs to have 1.5 spacing.
Go ahead and give your paragraphs a line height of your choosing.
Another nice thing you can do with CSS, is to cause your paragraphs to automatically have an indentation on the first line. We know that browsers ignore whitespace, so we cannot just insert a tab if we'd like the first line to have a tab indent. To do this, we set the CSS property named "text-indent". Here's an example:
p { text-indent: 12pt; }
Go ahead and give your paragraphs a text-indent of your choosing.
Make it so that when the user hovers over a link, a tooltip pops up telling them where the link will bring them. Specificially, you should add a title attribute to each "a" tag and give the title attribute a value of: Go to the IMDB page for [MOVIE NAME HERE]