HTML test2 Flashcards
Each HTML heading has a default size. However, you can specify the size for any heading with the ____ attribute, using the CSS _________ property:
style
font-size
< h1 style=”font-size:60px;”>Heading 1</h1 >
The ____ tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.
< hr >
The HTML ____element defines a line break.
< br>
The HTML _____ element defines preformatted text.
The text inside a ____ element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks:
< pre>
Use ___________ for background color
background-color
< body style=”background-color:powderblue;”>
Use _____ for text colors
color
< h1 style=”color:blue;”>This is a heading</h1 >
Use _________ for text fonts
font-family
< h1 style=”font-family:verdana;”>This is a heading< /h1>
Use _____ for text sizes
font-size
< h1 style=”font-size:300%;”>This is a heading< /h1>
Use ________ for text alignment
text-align
< h1 style=”text-align:center;”>Centered Heading< /h1>
Defines bold text
<b></b>
Defines emphasized text
<em></em>
Defines a part of text in an alternate voice or mood
<i></i>
Defines smaller text
<small></small>
Defines important text
<strong></strong>
Defines subscripted text
< sub>
Defines superscripted text
< sup>
Defines inserted text
<ins></ins>
<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>
Defines deleted text
<del></del>
Defines marked/highlighted text
<mark></mark>