Terms to Remember Flashcards
how do you change font in CSS?
font-family
How do you change the size of text in CSS?
Under the style tag, font-size: px or em
Font-Weight command in CSS?
Makes the text bold
Font-style command in CSS?
Makes the text italic, etc.
Spacing between lines in CSS?
Line-height:
Alignment in CSS
text-align
text-decoration in CSS
if you want to underline something, etc.
span tag
groups a selection of text
div tag
groups elements of text
inline element
does not have a new line after it
block element
does have a new line after it
How can you do width for a div?
you can do it by px or by percentange
margin?
Transparent area around the box
Border in CSS and aspects?
border: size, dotted or solid, then the color
padding?
pads out your text
What do you use “float” for in CSS?
For wrapping text around images; “float: left”; you can also add “width” and “margin” to it
“p.warning {“ what does this do?
It changes anything with a “p” tag with the class “warning” to do whatever you tell it to
“ul. spacey li strong {“ what does this do?
this is a descendent selector. In other words, if you have similar tags throughout the page and need to change a specific tag’s stuff, you can specify that in the unordered list called “spacey” that where there’s a strong list item to change what’s in there
CSS Selectors
Allows you to group certain things you do. For example, if you wanted to group all your headings together with a comma (h1, h2 {)
a: link
this is a pseudo class that selects elements of a webpage that are not a part of the normal structure. Selects all the links that the user has not selected, yet
visited pseudo class
selects all the links the user has visited
hover pseudo class
selects only if the user is hovering over it
active pseudo class
selects what is being clicked
focus pseudo class
tab key to tab around the interface when targeting a link