HTML/CSS Basics Flashcards

(34 cards)

1
Q

Add a background image with CSS

A

background: url(“http://webAddress”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Specify the space around an element with CSS

A

margin: 10px 0 0 10px; Top Right Bottom Left

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Increase/decrease leading between lines

A

line-height: 20px;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Inline styling for an element

A

<p>Paragraph example.</p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Add a Horizontal Rule (line)

A

<hr></hr>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Start a new line in a paragraph

A

<br></br>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Defines a block of pre-formatted text. Displayed in a fixed-width font; preserves spaces and line breaks.

A

<pre></pre>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Make a section of text bold

A

<b>Text</b>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Important text bold

A

<strong></strong>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Italic text

A

<i>text</i>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Emphasized text in Italics; med. weight

A

<em></em>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

small text

A

<small>This text will be very small</small>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Highlight text in Yellow

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Strike-Out a word or line of text

A

<del>This text will have a line through it</del>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Insert a word or line of text

A

<ins>This text will be inserted</ins>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Superscript text

17
Q

Subscript 2 in H20

A

H20 for water

18
Q

Quotation marks for short quote

19
Q

Add Contact Information to a page

A

<address>Write to us at:<br></br>

| Example Town USA</address>

20
Q

Cite the title of a published work

A

To <cite> The Title of a Work </cite> Will be in italics

21
Q

Show sample code in text

A

<code> some code in here </code>

Need <pre> to preserve formatting.

22
Q

Add a comment to your code

A

<!–This is an HTML comment! - ->

23
Q

Open linked document in new tab or window

A

target=”_blank”>

24
Q

Open link in same page

A

target=”_self” (default)

25
Open link in parent frame
target="_parent" (IFrame)
26
Open link in full body of the window
target="_top" (IFrame)
27
Open linked document in a named frame
framename
28
Long quotation
Indented
29
Style a section of html, inline

30
Style a small selection of html, inline
"some blue text"
31
Add a heading to a table
Heading
32
Add a table row to table
33
Add table data to table row
34
Table head span multiple columns
My 2 Cell Heading