Home >Web Front-end >HTML Tutorial >Create a white space in HTML
HTML
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
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!