Chapter 10: CSS & Styling Flashcards
Bold Syntax?
Use Strong Tag
<p>
This text is <strong>very important</strong>
</p>
<p></p>
Italicize Syntax?
Use emphasize Tag
<p>
while this is <em>emphasized</em>.
</p>
How to Underline?
Use insert
<p>
Inserted text appears <ins>underlined</ins>
</p>
<p></p>
How to Strikethrough?
use delete
<p>
however, deleted text has a <del>line through it</del>.
</p>
Superscript tag and subscript tag?
;
css rules syntax?
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 to Making a Paragraph use Bold Arial Font
<p>
This paragraph has bold text in the Arial font.
</p>
How to add a border to an image?
<img></img>
How to link an external stylesheet?
Stylesheet syntax?
/* this is a block of CSS rules */ selector { property: value; property: value; }
/* this is another block */ selector { property: value; property: value; }
How to make all paragraphs have blue text?
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 to add a background color to a table?
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 to make certain elements bold?
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;
}