HTML Singleton Tags

HTML Tags With No Closing Tag

The void elements or singleton tags in HTML are those tags that don't require a closing tag to be valid. These elements are usually elements that either stand alone on the page, or where the end of their contents is obvious from the context of the page itself.

There are several HTML 5 tags that are void elements. When you write valid HTML, you should leave off the trailing slash for these tags (if you are writing XHTML, the trailing slash is required):

  • <area >
  • <base>
  • <br>
  • <col>
  • <command>
  • <embed>
  • <hr>
  • <img>
  • <input>
  • <link>
  • <meta>
  • <param>
  • <source>

There are also some tags that are not strictly void tags, but that can be used in the same fashion. They have ending tags, but they are optional. While it is recommended that you use the closing tags for these elements, they are not required for valid HTML 5. They are required for valid XHTML. These tags are:

  • <body> </body>
  • <colgroup> </colgroup>
  • <dd> </dd>
  • <dt> </dt>
  • <head> </head>
  • <html> </html>
  • <li> </li>
  • <optgroup> </optgroup>
  • <option> </option>
  • <p> </p>
  • <tbody> </tbody>
  • <td> </td>
  • <tfoot> </tfoot>
  • <th> </th>
  • <thead> </thead>
  • <tr> </tr>