CSS 1 Flashcards
1
Q
Elements
A
components that define page objects
2
Q
tags
A
- defines the elements with angle brackets wrapped around the tag name and usually comes in pairs
3
Q
hr stands for
A
horizontal rule
4
Q
for all image tags, what is required is (2)
A
- src - defines the source
2. alt - a description of the picture
5
Q
CSS can be written in (3)
A
- internal CSS, same page
- inline CSS
- External CSS, preferred method
6
Q
to link a CSS externally, you need a ______ attribute in the ________
A
link Attribute; head
7
Q
2 required attributes to link CSS externally (2)
A
- rel=”stylesheet”
2. href=”…..”
8
Q
selectors
A
determines which HTML elements to apply styles to
9
Q
declaration block
A
- consists of one or more rules enclosed in curly braces
10
Q
body {
background: blue;
}
**body
A
selector
11
Q
body {
background: blue;
}
**background
A
property
12
Q
body {
background: blue;
}
**blue
A
value
13
Q
Class selectors (4)
A
- you define it
- can be applied to multiple elements
- Elements can have multiple classess
- Use a period to declare it in CSS
14
Q
ID Selector (4)
A
- Must be unique
- Only one per page
- Elements can only have 1 ID
- Denoted with # in CSS
15
Q
pseudo class
A
- selects a state of the element