Fonts And Colors Flashcards
Which rule allows you to define the name and location of a font in my page?
@ font-face
What does ttf mean?
True type font .ttf
What does otf mean?
Open type font .otf
It was built on top of ttf and is newer
What is .eot?
Compact form of ttf, proprietary to IE
What is .svg?
Scalable vector graphics font used to represent characters
Which font format is best supported across most browsers?
Woff
Name the five font families
Serif Sans serif Cursive Monospace Fantasy
How do you specify a font with multiple words in its name?
Put quotes around the name in the font family declaration
Five steps to add a web font to your page?
1) find a font
2) determine font format (.woff is best)
3) place font files on the web
4) add the @font-face property to your CSS
5) use the font-family name in your CSS
Where can you find open source, free fonts?
Fontsquirrel
What are the 7 keyword font sizes?
xx-small x-small small medium large x-large xx-large
What are your four choices in specifying font sizes?
Keyword
px
em
percentage
What is best practice for sizing font?
Use keyword font size in the body element and specify the font size of your other elements relative to the default size using percentages
em means
The font size of the parent element
@ import rule allows you to import other CSS files rather than a “link” in your HTML. T or F?
True
What does @ media allow you to do?
Create CSS rules that are specific to certain media types
Name a resource that will manage the fonts and CSS for you.
Google web font service google.com/webfonts
How to bold text
font-weight : bold ;
How to italicize text
font-style : italic ;
The three ways to specify colors in CSS
1 name the color (16 basic colors)
body { background - color : silver ; }
2 RGB
body { background - color : RGB ( 80% , 40% , 0% ) ; }
3 hex code
body { background - color : # cc 66 00 ; }
What is hex short for?
Hexidecimal system
The hex system allows two alpha numerical digits to represent from zero to ___
255
Always start hex code with
#
You can abbreviate hex codes if each two digit pair has the same
#
For example, # ccbb00 can be shortened to # cb0