HTML and CSS Reference
In-Depth Information
TABLE 7.2
Continued
Tag
Attribute
Use
Right-justifies the text within that
paragraph or heading. (Removed
from HTML5.)
align=”right”
Centers the text within that para-
graph or heading. (Removed from
HTML5.)
align=”center”
Left-justifies all the content
between the opening and closing
tags. (DeprecatRemoved from
HTML5.)
<div>...</div>
align=”left”
Right-justifies all the content
between the opening and closing
tags. (Removed from HTML5.)
align=”right”
Centers all the content between
the opening and closing tags.
(Removed from HTML5.)
align=”center”
Centers all the content between
the opening and closing tags.
(Removed from HTML5.)
<center>...</center>
TABLE 7.3
CSS Properties from Lesson 7
Property
Use/Values
Specifies which sort of decoration should be applied
to the text. The values are underline , overline ,
line-through , blink , and none .
text-decoration
Specifies whether text should be italicized. The three
values are normal , italic , and oblique .
font-style
Specifies the degree to which text should be embold-
ened. Options are normal , bold , bolder , lighter ,
and 100 to 900 .
font-weight
Enables you to specify the font used for text. You can
choose families such as serif, sans serif, and mono-
space, or specific font names. You can also specify
more than one font or font family.
font-family
Sets the font variant to normal or small-caps .
font-variant
Specifies how text is aligned: left , right , center ,or
justify .
text-align
Enables you to specify the font size in any unit sup-
ported by CSS.
font-size
 
 
Search WWH ::




Custom Search