and Answers
The key to understanding how CSS works is to imagine that there is an invisible box
around every HTML element. - answer True
A CSS rule contains two parts: a ________ and a ________. - answer selector
declaration
CSS declarations sit inside curly brackets and each is made up of two parts: a
_________ and a _________, separated by a colon. - answer property
value
Using the <link> element and linking in a separate CSS stylesheet to your HTML page
is using what type of CSS call? - answer External CSS
Including CSS rules within an HTML document using the <style> element is what type
of CSS call? - answer Internal (or Embedded) CSS
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.) - answer True
Which of the following is an ID Selector in CSS? - answer #top
Which of the following is a CLASS selector in CSS? - answer .note
Which of the following is an HTML (or TYPE) selector in CSS? - answer h1
Which of the following is a Universal selector in CSS? - answer *
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. - answer True
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. - answer False
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