HTML and CSS Reference
In-Depth Information
TABLE 7.2
Continued
Tag
Attribute
Use
A horizontal rule line at the given
position in the text. There's no
closing tag in HTML for <hr> ; for
XHTML, add a space and forward
slash ( / ) at the end of the tag
and its attributes (for example,
<hr size=”2” width=”75%” /> ).
<hr>
The thickness of the rule, in pix-
els. (Removed from HTML5.)
size
The width of the rule, either in
exact pixels or as a percentage of
page width (for example, 50%).
(Removed from HTML5.)
width
The alignment of the rule on the
page. Possible values are left ,
right , and center . (Removed
from HTML5.)
align
Displays the rule without three-
dimensional shading. (Removed
from HTML5.
noshade
A line break; starts the next char-
acter on the next line but doesn't
create a new paragraph or list
item. There's no closing tag in
HTML for <br> ; for XHTML, add a
space and forward slash ( / ) at
the end of the tag and its attrib-
utes (for example, <br
clear=”left” /> ).
<br>
Doesn't wrap the enclosed text
(nonstandard; supported by
Netscape and Internet Explorer).
<nobr>...</nobr>
Wraps the text at this point only
if necessary (nonstandard; sup-
ported by Netscape and Internet
Explorer). Adds a space and for-
ward slash at the end of the tag
for XHTML 1.0.
<wbr>
Left-justifies the text within that
paragraph or heading. (Removed
from HTML5.)
<p>...</p>, <h1-6>...</h1-6>
align=”left”
7
 
 
Search WWH ::




Custom Search