HTML Tutorial-Horizontal segment

Source: Internet
Author: User
Tutorial This tab displays a horizontal line on the screen that splits different parts of the page. <HR> has three properties:

    sizeWidth of horizontal line
    widthThe length of the horizontal line, expressed as a percentage of the screen width or pixel value.
    AlignHorizontal line alignment, there are three kinds of left right center
    NoShadeLine segment has no Shadow property, is a solid segment

We can use several examples to illustrate the use of this segment:

Set the thickness of a segment

<HTML>
<HEAD>
<TITLE> Segment Thickness Setting </TITLE>
</HEAD>

<BODY>
<P> This is the first line segment, no size set, take the default value size=1 to display <BR>
<HR>
<P> This is the second line segment,size=5<br>
<HR size=5>
<P> This is the third line segment,size=10<br>
<HR size=10>
</BODY>

</HTML>

Set the length of the segment

<HTML>
<HEAD>
<TITLE> segment Length Setting </TITLE>
</HEAD>

<BODY>
<P> This is the first line, no width set, take the width of the default value of 100% to display <BR>
<HR size=3>
<P> This is the second line segment, width=50 (dots) <BR>
<HR width=50 size=5>
<P> This is the third line segment, width=50% (Percent way) <BR>
<HR width=50% size=7>
</BODY>

</HTML>

The setting of line segment arrangement

<HTML>
<HEAD>
<TITLE> line arrangement of the set </TITLE>
</HEAD>

<BODY>
<P> This is the first line segment, no align set, (Take the default value center display) <BR>
<HR width=50% size=5>
<P> This is the second line segment, aligned to the left br>
<HR width=60% size=7 align=left>
<P> This is the third line segment, Align Right <BR>
<HR width=70% size=2 align=right>
</BODY>

</HTML>


Shadow-Free settings

<HTML>
<HEAD>
<TITLE> no shadow setting </TITLE>
</HEAD>

<BODY>
<P> This is the first line segment, no NoShade set, take the default value shadow effect to display <BR>
<HR width=80% size=5>
<P> This is the second line segment, has NoShade set <BR>
</BODY>

</HTML>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.