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

Add a horizontal line in HTML

王林
Release: 2023-08-24 23:17:06
forward
3302 people have browsed it

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>
Copy after login
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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template