Home  >  Article  >  Web Front-end  >  Add a horizontal line in HTML

Add a horizontal line in HTML

王林
王林forward
2023-08-24 23:17:063286browse

Add a horizontal line in HTML

HTML


tag is a tag used to create horizontal lines. The HTML
tag supports the following additional attributes: ## Description# align right - Specifies the alignment of the horizontal line. noshade - Removes the regular shadow effect displayed by most browsers. size You can try running the following code to add a horizontal line in HTML:
<!DOCTYPE html>
<html>
   <head>
      <title>HTML hr Tag</title>
   </head>
   <body>
      <p>This text will be followed by a horizontal line</p>
      <hr />
      <p>Another horizontal line</p>
      <hr />
   </body>
</html>
Attribute

## Value

left

center

Deprecated

Noshade

Deprecated

pixels or %

## Already Deprecated

- Specifies the height of the horizontal line.

width

pixels or %

## has been Deprecated - Specifies the width of the horizontal line.

Example

The above is the detailed content of Add a horizontal line in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete