1/36
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
block level element
starts on new line (h1-h6, p, div)
inline element
flows within text and does not start on new line (b, i, img, em, span)
CSS
creates rules that control how boxes and their contents are presented
parts of a rule
selector, declaration, property, value
CSS rule example
p {
font-family:Arial;
}
selector
indicates which element rules apply to
selector precedence
last, more specific, and !important properties have precedence
declaration
indicates element styling (font-family:Arial;)
<link>
HTML element in <head> that connects document to CSS with href, type, and rel attributes
href
specifies file path
type
specifies type of linked document
rel
specifies relationship between HTML page and linked file
<style>
HTML element in <head> that styles document with CSS, only used for websites with one page
ways to specifiy color
RGB, HEX, color names
saturation
amount of gray in color
brightness
amount of black in color
alpha
transparency
types of text properties
directly affect font/appearance or same effect on text regardless of font
typefaces
serif, sans-serif, monospace, cursive, and fantasy
serif
long passages of text
sans-serif
clearer for small text
monospace
aligns well for code
cursive
handwriting styles
fantasy
decorative and used for titles
parts of text
ascender, cap height, X-height, baseline
ascender
above cap height
cap height
top of flat letters
x-height
height of letter x
baseline
line letters sit on
descender
below baseline
pixels to percentages
16 px = 100% font-size
@font-face
uses fonts not downloaded to user’s computer
leading
vertical space between lines of text
kerning
space between letters
line-height
measured from bottom of descender to top of ascender
vertical-align
used with inline elements only
pseudo-elements/classes
preceded by colon and styles specific imaginary parts of element