HTML Tags

As explained earlier, elements in Html is known as tags. Html consist of huge number of tags but it is divided into two categories.

  • Empty tags: All the tags which is not closed or self-closed tags. E.g. <br>, <img>, <link> etc.
  • Non Empty tags: All those tags which are closed. E.g. <body>, <p>, <title> etc.

Types of Tag

  • Meta Tags: DOCTYPE, title, link, meta and style.
  • Text Tags: <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>, <acronym>, <address>, <blockquote>, <cite>, <q>, <code>, <ins>, <del>, <dfn>,<kbd>, <pre>, <samp>, <var>, <br> etc.
  • Link Tags: <a> and <base>.
  • Image and Object tags: <img>, <object>, <map>, <area> and <param>.
  • List Tags: <ul>, <ol>, <li>, <dd>, <dt> and <dl>.
  • Table tags: <table>, <th>, <tr>, <td>, <tbody>, <thead>, <tfoot>, col, colgroup and caption.
  • Form tags: <form>, <input>, <textarea>, <select>, <option>, <button>, <label>, <fieldset>, <legend> and <optgroup>.
  • Scripting tags: <script>, <noscript>.