HTML & CSS- part 3 Flashcards
How do you make the text on a page even on the left side?
text-align: left;
If you don’t specify, how does the text align by default?
Left side
By default, how much do browsers indent the first line of a paragraph?
They don’t indent at all by defaut.
What’s the code to indent a paragraph?
text-indent: 1em;
How do you set off a quotation more than a few lines long?
<blockquote>
What’s the point of a margin?
A margin creates extra whitespace around the top, bottom, or sides of an element.
How do you code a margin if you wanted: no margin on the top
2em on the right-hand side
1em on the bottom
1.75em on the left-hand side?
What order do the terms go in?
margin: 0 2em 1em 1.75em;
They are in clockwise order with the top listed first.
When writing a margin, border, etc., which is correct: 0 or 0em?
0 is correct
How do you code a margin if you only want it to affect one side?
Use one of these:
margin-top
margin-right
margin-bottom
margin-left
How do you indicate a comment in HTML?
<!–…–>
How do you indicate a comment in CSS?
/* This is a single-line comment */
/* This is
a multi-line
comment */
(Just like in javascript multi-line comments)
How do you code a border?
border: width style color;
What are a few of the styles that borders come in?
dotted
dashed
solid
double
groove or ridge
inset or outset
How do you code space between the border and the element inside of it?
padding: 3em;
(works just like margins, except it’s inside the border)
In CSS, how do you tell which properties are FONT- and which are TEXT- generally speaking?
TEXT- usually means you are moving the text.
FONT- think of selecting the individual letters from a tray of metal type: if you want to make it larger or italicized or bold, you’re going to need a different piece of type.