HTML/CSS Basics Flashcards

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

A

17
Q

Subscript 2 in H20

A

H20 for water

18
Q

Quotation marks for short quote

A

” “

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
Q

Open link in parent frame

A

target=”_parent” (IFrame)

26
Q

Open link in full body of the window

A

target=”_top” (IFrame)

27
Q

Open linked document in a named frame

A

framename

28
Q

Long quotation

A

<blockquote> Indented</blockquote>

29
Q

Style a section of html, inline

A

<p></p>

30
Q

Style a small selection of html, inline

A

<span>“some blue text”</span>

31
Q

Add a heading to a table

A

Heading

32
Q

Add a table row to table

A
33
Q

Add table data to table row

A
34
Q

Table head span multiple columns

A

My 2 Cell Heading