HTML hr divider tag usage

The <HR> tag pocket table in HTML is a horizontal divider. The <HR> tag that already exists in the early HTML syntax is supported by almost all major browsers.

<hr> Separator syntax example
This is the title
<hr>
This is the content of the article
In this example, a horizontal dividing line will be inserted between the article title and the article content. HR can be uppercase or lowercase. The default HTML hr thickness is 1, so it looks quite thick, and the width is 100%. That is, the width of the divider will change with the width of the screen of netizens. If you want to change the style of the HR divider, you can use an example like the following.

<hr size="8px" align="center" width="100%">


The example means that the thickness of this dividing line is set to 8px (very thick, it is set so thick for the sake of the example presentation effect), the horizontal alignment is centered, and the width is 100% (the same as the default). You can try to change the parameters and design a different separation line.

Post a Comment

0 Comments