HTML Tutorial 2: Getting Started with CSS Flashcards
CSS
Used to specify the format and appearance of content on webpages.
modules
A component of CSS that focuses on a particular design topic.
browser styles/user agent styles
A style built into the web browser itself.
user-defined styles
A style defined by the user based on settings made in configuring the browser. Takes precedence over browser styles.
external styles
A style created by the page author and placed into a CSS file and linked to the page. takes precedence over user-defined styles.
embedded styles
A style added to the head of an HTML file. Only applies to the HTML document in which they are created and is not accessible to other documents in the website.
<style>
style rules</style>
inline styles
A style added as attributes of an HTML element. Highest order of precedence, but not considered best practice because it violates one of the basic tenets of HTML: that HTML files should only describe the content and structure of the document and not the design itself.
General syntax of a CSS style rule
selector {
property1: value1;
property2: value2;
style rule
CSS code that sets the display properties of a page element.
browser extensions
An extension to CSS supported by a specific browser.
vendor prefix
The prefix added to a browser extension.
style inheritance
The principle by which style properties are passed from a parent element to its children.
style sheet comments
/*
comment
*/
CSS at-rule
CSS rule that directs how the browser should interpret and parse the CSS code
@import
CSS rule used to import a style sheet file into the current style sheet.
@import url(url);
contextual selector
A selector that specifies the context under which a particular page element is matched
parent element
An element that contains one or more child elements
child elements
An element contained within a parent element.
descendant elements
An element that descends from a parent element within the document hierarchy.
color values
A numeric expression that defines a color.
RGB Triplet
A color value indicating the red, green, and blue values of a color.
hexadecimal number
A number expressed in the base 16 numbering system.
Hue
The tint of a color, represented by a direction on the color wheel.