CSS-1 Week One Assignment
Darlene's CSS - 1 Assignments
Week One
Welcome to my CSS assignment pages. Vikki, you said a basic page, nothing fancy, and that is what you are getting. :))
Inline style:
This
is an example of inline style used. I added the "color" command to the lesson
example.
Sample of the syntax of an inline style.
This
paragraph is an example of using the "background-color" command and a different
font weight.
This is an example of using inline style for several paragraphs that you want to appear with the same font properties.
This would be the second paragraph.
And this would be the third, it could continue on for as many as you want
to appear this way.
Another example of using the style command for the appearance and placement of text.
Paragraph one. The style has been set in the div tag and inherits into the p tag.
Paragraph number two. The color and font weight have been changed, but leaving the italic font-style.
Quiz
- Two reasons for learning CSS:
- Have certain elements on your site appear the same without having to
enter the same html code all the time.
- Makes maintenance of your site easier, all you have to do is change elements
on the style sheet and it is instantly changed on all pages linked to
the stylesheet.
- Types of styles: Inline, Embedded, Linked and Imported.
- A semi-colon should always follow a value in your style declaration.
- To create a heading that is blue, underlined, and 18 points in size,
you would use the following style in you heading tag: <h3 style="color:blue;
font-size:18pt; text-decoration:underline">.
- For a font family that is more than one word you would enclose them
in single quotes: 'Courier New', 'Times New Roman'.
- False. If there isn't a closing tag, the browser will try to apply that tag and any others that you have added after the unclosed tag.
Week Two
LVS Online Classes