Shared Flashcard Set

Details

CSS3 Basics
CSS3 Basics
13
Computer Science
Advanced
07/17/2019

Additional Computer Science Flashcards

 


 

Cards

Term
The CSS _____ selector matches elements by node name. In other words, it selects all elements of the given type within a document.
Definition
type
Term
The CSS _____ selector matches elements based on the contents of their class attribute.
Definition
class
Term
The CSS _____ selector matches an element based on the value of its id attribute.
Definition
ID
Term
The CSS _____ selector (*) matches elements of any type.
Definition
universal
Term
The CSS _____ selector matches elements based on the presence or value of a given attribute.
Definition
attribute
Term
List three ways of adding CSS to a website.
Definition
  1. Inline
  2. Embedded (in the <head></head> section.
  3. External .CSS stylesheet
Term
What is the syntax to create comments in a CSS document?
Definition
/* comment */
Term
List the 5 levels of style precedence
Definition
  1. browser's internal style sheet
  2. external style sheet
  3. embedded style sheet
  4. inline styles
  5. user-defined styles
Term
A CSS rule-set consists of a _____ and a _____.
Definition
selector, declaration block
Term
A CSS declaration block is comprised of _____ and _____.
Definition
properties, values
Term
To select an element with a specific id, write a _____, followed by the id of the element.
Definition
hash (#) character
Term
To select elements with a specific class, write a _____, followed by the name of the class.
Definition
period (.) character
Term
List the 31 major categories of CSS3 elements (per the CSS3 cheat sheet).
Definition
2D/3D transform, absolute measurement, angles, animations, background, border, box model, color, colors, column, font, frequency, generated content, grid positioning, hyperlink, line box, lists & markers, outline, paged media, positioning, pseudo-class, pseudo-element, relative measurement, ruby, speech, table, template layout , text, time, transitions, UI
Supporting users have an ad free experience!