Ch. 5 - Applying the Contiguity Principle
Identify a contextual selector that matches any element.
*
Identify a pseudo-class which is the first descendant of the parent that matches the specified type.
:first-of-type
Identify a rule that should be added to a style sheet to access and load a web font.
@font-face
A color value is an alphabetic expression that represents the intensity of the primary colors.
False
A decimal is a number expressed in the base 16 numbering system rather than in the commonly used base 10 system.
False
A generic font describes the general appearance of a typeface and relies on a specific font definition.
False
A generic font is a font that is identified by name, such as Times New Roman or Helvetica.
False
Embedded style sheets are created by web page authors and consist of styles that are inserted directly within the body element of a Hypertext Markup Language (HTML) document.
False
Embedded styles apply to the Hypertext Markup Language (HTML) documents in which they are created and are accessible to other documents in the website.
False
Embedded styles are directly applied to specific elements using the style attribute.
False
Hue measures the brightness of a color and ranges from 0% (black) up to 100% (white).
False
Hue values range from 0˚ to 360˚, where 0˚ matches the location of blue on the color wheel, 120˚ matches red, and 240˚ matches green.
False
_____ is the tint of a color and is usually represented by a direction on a color wheel.
Hue
_________ styles are added as element attributes within a Hypertext Markup Language (HTML) document and thus apply to that element alone.
Inline
Each color is represented by a set of numbers called a(n) _________ that represents the intensity of its red, green, and blue components.
RGB triplet
A pixel is a relative unit because the actual rendered size depends on the density of the output device.
True
Absolute units are units that are fixed in size regardless of the output device and are usually used only with printed media.
True
An additional factor in applying a style sheet is that properties are passed from a parent element to its children in a process known as style inheritance.
True
Browser extensions are identified through the use of a vendor prefix, which indicates the browser vendor that created and supports the property.
True
Cascading Style Sheets (CSS) allow RGB values to be entered as hexadecimal numbers.
True
_________ is the art of designing the appearance of characters and letters on a page.
Typography
Identify a relative unit in which lengths are expressed as a percentage of the width or height of a browser window.
Viewport unit
How is background color defined in a Cascaded Style Sheets (CSS) file?
background-color: color;
Block-level elements like paragraphs or headings or lists follow the structure of the _________ in which the content is enclosed within a series of concentric boxes.
box model
Identify an attribute selector that recognizes groups of elements that share a similar characteristic or property.
class
Cascading Style Sheets (CSS) support _________, which are numerical expressions that precisely describe colors.
color values
A typeface, best used in small doses for decorative page elements, that mimics handwriting with highly stylized elements and flourishes is _____.
cursive
Each child element may contain children of its own and so forth down the hierarchy, creating a set of _____ elements that are all descended from a common parent.
descendant
Each child element may contain children of its own and so forth down the hierarchy, creating a set of _________ that are all descended from a common parent.
descendant elements
Identify an attribute selector that selects all elem elements whose att attribute begins with text.
elem[att^="text"]
Identify the format to add new content before an element with Cascading Style Sheets (CSS).
element::before {content: text;}
Identify a Cascading Style Sheets (CSS) selector that is used to select pseudo-elements.
element::pseudo-element
A _________ font describes the general appearance of the characters in a text but does not specify any particular font definition file.
generic
Extending the first line of text to the left of a text block creates a _____ indent.
hanging
A(n) _________ number is a number expressed in the base 16 numbering system rather than in the commonly used base 10 system.
hexadecimal
Cascading Style Sheets (CSS) 3 introduced opacity to the CSS color models where opacity defines how transparent the color appears.
hexadecimals
Color values using the HSL model are described in Cascading Style Sheets (CSS) 3 using _____.
hsl (hue, saturation, lightness)
If two style rules have equal specificity, and thus equal importance, then the one that is defined _____ in the style sheet is the one used.
last
Identify a generic font group that is a typeface in which each character has the same width.
monospace
Identify a padding property used to set the width of the padding space.
padding: size;
A _____ element is an element that contains one or more other elements, which are called child elements.
parent
A(n) _____ represents a single dot on an output device.
pixel
A _____ is a classification of an element based on its current status, position, or use in a document.
pseudo-class
Identify an element used for quoted material.
q
A typeface in which a small ornamentation appears at the tail end of each character is _____.
serif
Identify a property used to align text horizontally.
text-align: alignment;
Adding all the three primary colors—red, green, and blue—at maximum intensity produces the color _____, while adding any two of the three primary colors at maximum intensity produces the trio of complementary colors—yellow, magenta, and cyan.
white
Identify the correct syntax for adding comments in style sheets.
/*comment*/