Open In App

HTML | <spacer> tag

The HTML <spacer> tag is used to create some white-space. This tag is history in HTML5, there is no more support in HTML5 also this tag does not support by any major browsers.
Syntax:

<spacer type="" size="">

Attribute:



Below example illustrate the HTML <spacer> tag:
Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML <spacer> Tag</title>
    <style>
        h1 {
            color: green;
        }
    </style>
</head>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h2>HTML <spacer> tag</h2>
        <p>A Computer Science Portal
            <spacer type="block" width="50" /> for Geeks</p>
  
    </center>
</body>
  
</html>

Output:



Supported Browsers: The <spacer> tag does not supported by major browsers:

Article Tags :