Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^588) Appendix A XHTML Reference
The


Ta g




The self-contained
tag creates a horizontal line on the Web page. Table A.11
shows the
tag attributes and their values.
Table A.11
tag attributes
Attribute Value Usage
align "left" Aligns the horizontal line on the Web page. (Deprecated)
"center"(default)
"right"
color A valid color; the W3C recom-
mends hexadecimal colors
Configures the color of the horizontal line. Not in W3C
Recommendation; originally only used by Internet Explorer.
noshade "noshade" Prevents a shadow from being displayed under the line.
(Deprecated)
size Number of pixels Configures the height of the line. (Deprecated)
width Numeric percentage Configures a line that takes up a percentage of the width of the
browser window.
(Deprecated)
Number of pixels Configures a line that takes up an exact number of pixels in the
browser window.
(Deprecated)
The Ta g

The tag, called the anchor tag, creates a hyperlink. The text or image contained
between the
tags is displayed by the browser as a hyperlink, as in the following
example:
My Company
This creates an absolute hyperlink to the URL specified, in this case mycompany.com.
My Page
This creates a relative link to the named file, in this case mypage.html.
Table A.10clearattribute values
clearAttribute Value Result
"left" The next element is displayed on a new line under any existing element blocking the
left margin.
"right" The next element is displayed on a new line after any existing element blocking the
right margin.
"all" The next element is displayed on a new line after any existing element blocking either
the left or right margin.
Free download pdf