Chapter 10: CSS & Styling Flashcards

1
Q

Bold Syntax?

A

Use Strong Tag

<p>
This text is <strong>very important</strong>
</p>

<p></p>

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

Italicize Syntax?

A

Use emphasize Tag

<p>
while this is <em>emphasized</em>.
</p>

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

How to Underline?

A

Use insert

<p>
Inserted text appears <ins>underlined</ins>
</p>

<p></p>

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

How to Strikethrough?

A

use delete

<p>
however, deleted text has a <del>line through it</del>.
</p>

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

Superscript tag and subscript tag?

A

;

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

css rules syntax?

A

Properties are separated from the values by a colon (:), values are separated from each other by a space ( ), and the rule is finished with a semicolon (;)

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

How to Making a Paragraph use Bold Arial Font

A

<p>
This paragraph has bold text in the Arial font.
</p>

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

How to add a border to an image?

A

<img></img>

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

How to link an external stylesheet?

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

Stylesheet syntax?

A
/* this is a block of CSS rules */
selector {
  property: value;
  property: value;
}
/* this is another block */
selector {
  property: value;
  property: value;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to make all paragraphs have blue text?

A

If the website is linked to the styling sheet:
If your XHTML contains the following code:

<p>
  Hello, world.
</p>
<p>
  This is a paragraph.
</p>

And is linked to a CSS file containing the following code:

p {
color: #0000FF;
}

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

How to add a background color to a table?

A

If your XHTML contains the following code:

Chrysler
Oddysey

Dodge
Ram

And is linked to a CSS file containing the following code:

#mydata {
  background-color: #00FF00;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to make certain elements bold?

A

If your XHTML contains the following code:

<p>
This is a <span>paragraph</span>, and it contains a <a>link</a>.
</p>

And is linked to a CSS file containing the following code:

.boldtext {
font-weight: bold;
}

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