OUTPUT
FIGURE 6.8 EXAMPLES OF RULE LINE WIDTHS.
If you specify a
width smaller than the actual width of the browser window, you can also specify
the alignment of that rule with the align attribute, making it flush left (align=”left”).
Flush right <align=”right”), or centered (align-“center”). By default, rule
lines are centered.
Finally, in most current browsers, the no shade attribute
shown in the flowing example causes the browser to draw the rule line as a
plain line without the three-dimensional shading, as shown in figure 6.9
Handling attributes without by values
In HTML 4.0 and earlier versions, a value isn’t required by
the no shade attribute. The method you use o apply this attribute appears as
follows:
<hr align =”center” size=”4” width=”200” no shade>
To comply with XHTML 1.0, however, all attributes require a
value, the HTML 4.01 specification requires that Boolean attributes (such as no
shade) have only the name of the attribute itself as the value. The following
example demonstrates how to apply of the attribute itself as the value. The
following example demonstrates how to apply of the attribute itself as the
value. The following example demonstrates how to apply of the attribute itself
as the no shade attribute to the <hr> tag in compliance with the XHTML
1.0 specification
<hr align=”center” size=”4” width=”200” no shade =”no
shade”/>
<hr align=”center” size=”4” width=”300” no shade =”no
shade”/>
<hr align=”center” size=”4” width=”400” no shade =”no
shade”/>
<h1> align=”center”> northwestern video</h1>
<hr
align=”center” size=”4” width=”400” no shade =”no shade”/>
<hr
align=”center” size=”4” width=”300” no shade =”no shade”/>
<hr align=”center” size=”4” width=”200” no shade =”no
shade”/>
<h2 align=”center”>presents</h2>
No comments:
Post a Comment