CSS Flashcards
What does a h1 {color: black; text-align: center;} tell my computer?
CSS is telling my computer that wherever there is a HTML <h1></h1> tag to color it black and align its text in the center.
What does a p {font-family: “Arial”; font-size: 14px;} tell my computer?
For all the HTML paragraphs <p></p>, let’s use the font family Arial, and let’s make the text 14px.
The primary way to write CSS is to _____ HTML tags.
DESCRIBE
The BIG idea with CSS is that you use it to tell your web browser how to _____ all that HTML you’ve been busy writing.
DISPLAY
CSS selector tells the computer what?
The HTML element it is describing.
Why are the greater-than and less-than HTML brackets <> missing from CSS?
…if they were there, the CSS wouldn’t work!
Each CSS property has two parts:
- NAME
2. VALUE
Each CSS property has its own _____.
LINE
For every HTML element you use, you should create a little bit of _____ to go with it.
CSS
What does CSS stand for?
Cascading Style Sheets
Anatomy of a CSS Block?
HTML tag { property1: value; property2: value; property3: value; }
What are the 3 BASIC levels of styling my HTML text with CSS?
- font-family
- font-size
- color
Web safe fonts are _____ on your browser and cover a lot of _____ fonts like Times New Roman, Arial & Verdana.
PRELOADED
COMMON
What are pixels?
Measurements based on the height of your text as pixels, or one of the tiny dots that make up the image on your screen.
What are EM’s?
Relative text size measurement
What are the 2 ways to designate color with CSS?
- Web Safe Color names
2. Hexadecimal values
Hexadecimal values begin with what?
Hashtag #
How would I change the alignment of my text with CSS?
With TEXT-ALIGN to left, right, center, or justify
How would I italicize text with CSS?
Using FONT-STYLE is oblique or italic
How would I change my HTML text’s weight?
Using FONT-WEIGHT is bold, normal, bolder, lighter, or numbers 100 through 900.
CSS’s TEXT-TRANSFORM allows you to make all your HTML text what?
capitalized, uppercase or lowercase using properties capitalize, uppercase and lowercase.
FONT-VARIANT puts your text into, well, _____-_____ or SMALLER SCREAMING.
SMALL-CAPS
CSS TEXT-DECORATION lets you do what?
add lines over, under and through your text using underline, overline and line-through.
LINE-HEIGHT allows HTML text to have more _____ _____.
BREATHING ROOM
,
, etc) different styles?
,
, etc) that are the _____ or _____.
,
, etc) have?
,
, etc) can only have _____ CSS ID.
,
, etc)?
,
tag. Ex:
,