Topic B1 Flashcards
What is the latest version of CSS?
CSS3
What are modules?
CSS3 is composed of modules, where each module focuses on a different design topic
What are browser/user agent styles?
Styles built into the browser
What are user-defined styles?
Styles defined by a user based on the settings of the user’s browser
What are external styles?
Styles created by a website author, placed into a CSS file, and linked to the page
What are embedded styles?
Styles added to the head of an HTML document
What are inline styles?
Styles added as element attributes within and HTML document and applied only to that specific element
What is the general syntax of a CSS style rule?
selector{ property1: value1; propert2: value2; ... }
_____ _____ are an extended library of style properties in the browser.
Browser extensions
Vendor prefix indicates what?
Vendor prefix indicates the browser vendor that created and supports the style property
How does one embed different style rules directly in an HTML file.
Use the tag within the document head
Which type of style rule has precedence over each other?
The more specific style rule has higher precedence than a general rule
Which style rule has precedence of two rules have the same specificity?
The rule that was defined last
_____ _________ is the process in which properties are passed from a parent element to its children.
Style inheritance
ex. article {color: blue}
p {…}
would leave p blue as well
what does @import do?
@import is a CSS at-rule used to import the content of another style sheet file
ex @import url(url)
What does an RGB triplet do?
Creates a colour corresponding to the intensity of the primary colours red, green, and blue
How does HSL represent colours?
With hue (the tint of the colour), saturation (the intensity of the colour), and lightness (the brightness of a color).
_____ is also another descriptor which can be added to RGB colours or HSL colours.
Opacity (how solid a colour is)
How does CSS define the text and background colour for each element on a web page?
color: color and background-color: color
What does a contextual slider do?
A contextual slider specifies the context under which a particular page element is matched
What is context based on?
Context is based on the hierarchical structure of a document. eg parents, children, ancestors, and siblings
__ identifies specific elements within the document.
id
_____ identifies a group of elements with similar characteristics or properties.
class