<br />This tag can display a horizontal line on the screen to separate different parts of the page. <HR> has three attributes: size: The width of the horizontal line width: The length of the horizontal line, expressed as a percentage of the screen width or in pixels align: The alignment of the horizontal line, which has three types: LEFT RIGHT CENTER noshade: The line segment has no shadow attribute, and is a solid line segment. We can use several examples to illustrate the usage of this line segment: Setting line thickness <HTML> <HEAD> <TITLE>Setting line thickness</TITLE> </HEAD> <BODY> <P>This is the first line segment. No size is set. The default value SIZE=1 is used for 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> Setting the line length <HTML> <HEAD> <TITLE>Setting the length of line segments</TITLE> </HEAD> <BODY> <P>This is the first line segment. There is no WIDTH setting. The default WIDTH value of 100% is used for display.<BR> <HR SIZE=3> <P>This is the second line segment, WIDTH=50 (point method)<BR> <HR WIDTH=50 SIZE=5> <P>This is the third line segment, WIDTH=50% (percentage method)<BR> <HR WIDTH=50% SIZE=7> </BODY> </HTML> Segment Arrangement Settings <HTML> <HEAD> <TITLE>Line segment arrangement settings</TITLE> </HEAD> <BODY> <P>This is the first line segment, no ALIGN setting, (default value CENTER is used for 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, aligned to the right<BR> <HR WIDTH=70% SIZE=2 ALIGN=RIGHT> </BODY> </HTML> No shadow setting <HTML> <HEAD> <TITLE>Shadowless setting</TITLE> </HEAD> <BODY> <P>This is the first line segment. No NOSHADE is set. The default shadow effect is used for display.<BR> <HR WIDTH=80% SIZE=5> <P>This is the second line segment with NOSHADE set<BR> <HR WIDTH=80% SIZE=7 ALIGN=LEFT NOSHADE> </BODY> </HTML> Last horizontal line: |
<<: What are the rules for context in JavaScript functions?
>>: In-depth analysis of MySQL explain usage and results
This article uses an example to describe the inte...
I'll record my first attempt at vue3.0. When ...
The Riddle vulnerability targeting MySQL versions...
MJML is a modern email tool that enables develope...
1. Connect to MYSQL Format: mysql -h host address...
This article shares with you the specific method ...
Table of contents Web Development 1. Overview of ...
A few days ago, I saw a post shared by Yu Bo on G...
Here is a record of how to make a scroll bar appe...
1. parseFloat() function Make a simple calculator...
Table of contents 1. Overview 1. Explain statemen...
1. Implementation principle of Nginx load balanci...
Preface Slow query log is a very important functi...
Table of contents 1. Basic concepts and basic com...
Table of contents 1. Integrate Ant Design Vue 2. ...