CSS Fundamentals Flashcards
Blank is a textual language for describing how a web page is styled for visual presentation.
CSS (Cascading Style Sheets)
Blank use CSS to determine how a web page is rendered on the screen, printed to paper, or presented via other media
Web browsers
The process of combining multiple style rules and resolving conflicting styles.
Cascading
Describes the visual presentation of structured documents.
Style Sheets
A web developer uses CSS to write a list of blank
rules
A blank consists of a selector followed by a declaration block between braces ({ }
CSS rule
A blank specifies the HTML elements to which the specific style rule applies.
CSS selector
A blank contains one or more declarations separated by semicolons (;)
declaration block
A blank is a CSS property followed by a colon (:) and the property value.
CSS styling declaration
Blank are only required to separate rule declarations
Semicolons
CSS can be applied to HTML in what three ways
An inline style
An embedded stylesheet
An external stylesheet
places CSS declarations inside a tag’s style attribute.
inline style
places CSS rules in an HTML document’s head using <style> tags.</style>
An embedded stylesheet
places CSS rules in a separate file that is imported into an HTML document with a <link></link> tag
An external stylesheet
The blank attribute may be used on any tag.
style
good practice is to place blank and blank tags inside the document head (before the <body> tag).
<style>
and <link></style>
Every browser has a blank that specifies styling for each HTML element.
default stylesheet
The style declarations from a parent element cascade down and are applied to any child elements, a concept called blank.
inheritance
Each element blank the style declarations from the element’s parent.
inherits
When two style declarations with identical properties apply to the same element, a blank occurs
conflict
A parent’s style declaration conflicts with a child’s style declaration. Ex: The parent element’s text is blue, but a child element’s style declaration indicates the color should be green. When a conflict occurs, the blank overrides the blank.
child’s declaration
parent’s declaration
An embedded or external stylesheet’s style declaration conflicts with an inline style. Ex: An inline style says the element should be blue, but the embedded stylesheet says the element should be green. When a conflict occurs, an blank overrides the blank’s declaration.
inline style
embedded or external stylesheet
The browser uses blank, a scoring system that resolves more complex CSS conflicts, to determine what style declarations apply to an element.
specificity
The blank rule may be used on a style declaration to override other declarations and disregard specificity.
!important
- and
- elements.
