Home >Web Front-end >HTML Tutorial >Create a white space in HTML

Create a white space in HTML

王林
王林forward
2023-09-21 23:45:031349browse

Create a white space in HTML

HTML Marks specified spaces. It supports the following additional properties -

Property

Value

Description

Type

Vertical

Horizontal

Block

The type attribute is used to specify whether the spacer is horizontal, vertical, or block.

Size

number

Specifies the separator height or width The number of pixels in this property is used only if the spacer type is "horizontal" or "vertical". If the interval type is "block", the width attribute is used.

Width

Number

When spacer type="block ” use the width attribute. Specify the pixel value of the block width between quotes.

Height

Number

When interval type="block ” use the height attribute. Specify the pixel value of the block height between quotes.

Alignment

centered left and right

align tag is used to specify Alignment of whitespace blocks. Valid alignments are left, right, and center.

NOTE - The tag is only available in Netscape 4 and above.

Example

You can try running the following code to create a space in HTML (visible only in Netscape web browser) -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML spacer Tag</title>
   </head>
   <body>
      Create some space <spacer type = "block" width = "70" /> now.
   </body>
</html>

The above is the detailed content of Create a white space 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