Quiz 06: Introduction to CSS
Which of the following is an ID Selector in CSS?
#top
Which of the following is a Universal selector in CSS?
*
Which of the following is a CLASS selector in CSS?
.note
Using the <link> element and linking in a separate CSS stylesheet to your HTML page is using what type of CSS call?
External CSS
It does not matter what order you write your CSS rules. They will never override each other if you place styles on the same element.
False
Including CSS rules within an HTML document using the <style> element is what type of CSS call?
Internal (or Embedded) CSS
The key to understanding how CSS works is to imagine that there is an invisible box around every HTML element.
True
Using the style attribute (ie <p style="color:red;">) is a satisfactory way to add CSS to your HTML on a new site. (Note: this is mentioned in the last paragraph of Internal CSS.)
True
You can style an element based on its nested qualities (which is explained in family relations: parent, child, ie). This method is commonly referred to as a descendant selector.
True
You have to be mindful of the inheritance of some CSS properties. Some of them, like the font-family property, inherit. This means that the child elements of the element you styled will carry that style too. Other CSS properties, like background-color, do not inherit. So the property only affects (styles) the element you applied the rule to.
True (?)
Which of the following is an HTML (or TYPE) selector in CSS?
h1
CSS declarations sit inside curly brackets and each is made up of two parts: a _________ and a _________, separated by a colon.
property value
A CSS rule contains two parts: a ________ and a ________.
selector declaration