Other Media + Quiz
DUE Wednesday, Feb 22 – 4 points
(Thursday NOON deadline)
This week, I will be introducing you to CSS: what it is, how to write it, and why it is so great. We will be using the textbook as secondary material this week; our primary material this will come from these online resources:
-
SitePoint CSS Reference >What is CSS?
This article in the SitePoint CSS Reference provides a good introduction to what CSS is and why it is used for defining styling web pages. (This is the first in a series of articles under the “CSS Concepts” section, but you only need to read this one article: you do not need to click the “Next” arrow or follow the links to other articles in that section.) -
CSS Videos
This site contains short video tutorials that cover the basics of CSS syntax. You will need to watch these four videos:- CSS Syntax (2:03)
- CSS Selectors 1 (4:12)
- CSS Selectors 2 (3:01)
- Embedding CSS in Your Website (3:01)
-
SitePoint CSS Reference > Declarations, Properties, and Values
The SitePoint CSS Reference dives a little deeper in declarations, properties, and values than do the videos. Read this web page plus all nine pages listed in that section. Do not worry: they are all very short. I have provided links to all ten pages below, but you can just follow the first link and click the “Next” arrows on each page to navigate through them all:
Once you have watched or read these materials, you will need to take a quiz of ten true-false questions. (These questions will be randomly selected from the questions below. You can retake the quiz up to five times. Don’t stress about getting 100% on these quizzes: if you get 80% or better, you will be ready to proceed to the next activity and I will give you the full 3 points.)
All questions should be prefaced with an understood, “According to the author / presenter …”:
- T/F? HTML makes up the content layer of a web page.
- T/F? A web browser on a computer is only one of many ways to access the content of a web page.
- T/F? JavaScript makes up the presentation layer of a web page.
- T/F? The behavior layer of a web page is normally handled by PHP, Java, or another server-side language.
- T/F? The main advantage of CSS over presentational HTML markup is that the styling can be kept entirely separate from the content.
- T/F? Ashton Sanders’ favorite part of CSS is its flexibility.
- T/F? Every CSS rule has a “selector” that describes to which HTML element(s) it should be applied.
- T/F? Every CSS rule has a “declaration block” that contains exactly one declaration.
- T/F? A “declaration” in a CSS rule contains one “element” and one “attribute.”
- T/F? Ashton Sanders describes four different types of selectors.
- T/F? In a CSS selector, a dot or period (.) is used to indicate an HTML class.
- T/F? In an HTML document, you should not have two elements with the same value in the ID attribute.
- T/F? In a CSS selector, an ampersand (&) is used to indicate an HTML ID.
- T/F? Ashton Sanders uses the term “descendant” to refer to an HTML element inside another HTML element.
- T/F? Ashton Sanders does not cover sibling selectors because they do not work in Internet Explorer 6.
- T/F? Ashton Sanders covers three ways to embed CSS in web pages.
- T/F? You can add CSS directly to an HTML element by using the style attribute.
- T/F? Inline CSS is the most effective way to use CSS because it keeps the design mixed with the content.
- T/F? Internal CSS rules can be made in a STYLE element within the HEAD element of an HTML document.
- T/F? With external CSS, you can put all the styling for your entire web site in one style sheet.
- T/F? Ashton Sanders recommends using external CSS.
- T/F? If a property name is specified incorrectly in a CSS declaration, the declaration is ignored.
- T/F? Keywords in CSS (like “yellow”) must be surrounded by quotation marks.
- T/F? An “em” is a unit of length typically equal to 96 pixels.
- T/F? The “em” is a centuries-old term that originally referred to the width of the letter M in a particular font.
- T/F? Colors in CSS can be represented as hexadecimal numbers, hash marks followed by three or six characters.
- T/F? “Gecko” is the name of the rendering engine associated with Firefox.
- T/F? “Webkit” is the name of the rendering engine associated with Internet Explorer.
- T/F? To include a web address in a CSS declaration (for properties like background-image), you put the web address in parentheses prefixed by “link,” like this — link(images/bg.gif)
- T/F? Some examples of properties that represent shorthand notation for other properties are [border], [background], and [font].
DUE Wednesday, Feb 22 – 4 points
(Thursday NOON deadline)