Beginner CSS Flashcards
What does CSS stand for?
Cascading Styles Sheets
How does CSS differ from HTML?
HTML is the meaning or content
CSS is the presentation (style) of that document
What is the standard format of CSS?
property: value
What are the three ways to apply CSS?
- ) Inline
- ) Internal
- ) External
______ styles are plonked straight into the HTML tags using the style attribute.
Inline styles
How to use the color red?
color: red
True or False? Inline styles should be avoided wherever possible
True: HTML should be a stand-alone, presentation free document, and so in-line styles should be avoided wherever possible
_______ styles are used for the whole, multiple-page website. There is a separate CSS file.
External
What tag is used to include a CSS file in an HTML document?
link along with the attributes rel=”stylesheet” and href=”style.css”
Whereas HTML has tags, CSS has _________
Selectors
What are CSS selectors?
Selectors are the names given to styles in internal and external style sheets.
What are HTML selectors?
HTML selectors are simply the names of HTML tags and are used to change the style of a specific type of element
For each selector there are ________
Properties
A _______ is given to the property following a colon
Value
px
The unit for pixels: 12px
em
The unit for the calculated size of a font: 2em is two times the current font size.
pt
The unit for points, for measurements typically in printed media: 12pt
%
The unit for percentages: 80%