HTML Self-Closing Tags

In HTML, tags start with <> and ends with </>. However, there are exceptions of this rule. HTML tags with no closing tag (self-closing) are listed below.

HTML Self-Closing Tags

  1. <area />
  2. <base />
  3. <br />
  4. <col />
  5. <command />
  6. <embed />
  7. <hr />
  8. <img />
  9. <input />
  10. <keygen />
  11. <link />
  12. <meta />
  13. <param />
  14. <source />
  15. <track />
  16. <wbr />

HTML meta tags

Meta tags allow delivering fundamental information about the page (Page explanation, key words, title etc.) to search engines and browsers.

<meta name="description" content="...">
<meta name="keywords" content="..."> 
<meta name="robots" content="..., ..."> 
<meta name="googlebot" content="..., ...">
<meta name="author" content=""> 
<meta name="robots" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="30">

HTML base tag

HTML base tag, which is an html tag, is used define a URL that can be used for all relative links in the HTML file.

  <base href="https:/" target="_blank">
   <img src="/images/photo.png" alt="">

HTML hr tag

Html hr tag, which is an HTML tag, allows drawing a horizontal line.

<hr width="100%" color="red" size="2">

HTML col tag

HTML col tag, which is an html tag, is defined within colgroup tag and it is used to shape columns.

    <col style="background-color:orange">
    <col style="background-color:red">
    <col style="background-color:green">
    <td>CELL 1</td>
    <td>CELL 2</td>
    <td>CELL 3</td>
    <td>CELL 4</td>
    <td>CELL 5</td>
    <td>CELL 6</td>
    <td>CELL 7</td>
    <td>CELL 8</td>
    <td>CELL 9</td>

HTML br tag

HTML br tag, which is an HTML tag, allows moving to the line below.

70480cookie-checkHTML Self-Closing Tags

Leave a Reply

Your email address will not be published. Required fields are marked *