Tag Description Syntax
<!DOCTYPE> Defines the document type <!DOCTYPE html>
<html> Defines an HTML document <html> ... </html>
Contains metadata/information for
<head> <head> ... </head>
the document
<title> Defines a title for the document <title>Title</title>
<body> Defines the document's body <body> ... </body>
<h1>Heading</h1> to
<h1> to <h6> Defines HTML headings
<h6>Heading</h6>
<p> Defines a paragraph <p>Paragraph text</p>
<br> Inserts a single line break <br>
Defines a thematic change in the
<hr> <hr>
content
<!--...--> Defines a comment <!-- Comment -->
<form> Defines an HTML form for user input <form action="#"> ... </form>
<input> Defines an input control <input type="text">
<textarea> Defines a multiline input control <textarea>Text</textarea>
<button> Defines a clickable button <button>Click</button>
<select> Defines a drop-down list <select> ... </select>
Groups related options in a drop-down <optgroup label="Group"> ...
<optgroup>
list </optgroup>
<option
<option> Defines an option in a drop-down list
value="1">Option</option>
Defines a label for an <input>
<label> <label for="id">Label</label>
element
<datalist id="list"> <option>
<datalist> Specifies a list of pre-defined options
</datalist>
<output> Defines the result of a calculation <output>Result</output>
<a> Defines a hyperlink <a href="url">Link</a>
Links external resources (e.g., <link rel="stylesheet"
<link>
stylesheets) href="style.css">
<nav> Defines navigation links <nav> ... </nav>
<menu> Defines an alternative unordered list <menu> <li>Item</li> </menu>
<ul> Defines an unordered list <ul> <li>Item</li> </ul>
<ol> Defines an ordered list <ol> <li>Item</li> </ol>
<li> Defines a list item <li>Item</li>
<dir> Deprecated. Directory list <dir> <li>Item</li> </dir>
<dl> Defines a description list <dl> ... </dl>
Defines a term/name in a description
<dt> <dt>Term</dt>
list
<table> Defines a table <table> ... </table>
<caption> Defines a table caption <caption>Caption</caption>
<th> Defines a header cell <th>Header</th>
<tr> Defines a row <tr> ... </tr>
<td> Defines a cell <td>Data</td>
<col> Specifies column properties <col span="1" style="...">
<colgroup> Groups columns <colgroup> <col> </colgroup>
<style> Defines style information <style> CSS here </style>
<div> Defines a block-level section <div> ... </div>
<header> Defines a header for a section or page <header> ... </header>
<hgroup> <h1>Title</h1>
<hgroup> Groups heading content
</hgroup>
<footer> Defines a footer for a section or page <footer> ... </footer>
<main> Specifies the main content <main> ... </main>
<section> Defines a section in the document <section> ... </section>
<search> Defines a search section <search> ... </search>