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

Create a white space in HTML

王林
Release: 2023-09-21 23:45:03
forward
1376 people have browsed it

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

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!

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