Tag Description Syntax Example
<!DOCTYPE Defines the <!DOCTYPE Used at the top of every
html> document type html> HTML5 document.
and HTML
version.
<html> Root element of <html> ... </html> <html><head></
an HTML head><body></body></
document. html>
<head> Contains meta- <head> ... <head><title>My
information about </head> Page</title></head>
the document.
<title> Specifies the title <title> ... </title> <title>Welcome
of the document. Page</title>
<body> Contains the <body> ... <body><h1>Hello</h1></
content of the </body> body>
document.
<h1> to <h6> Defines HTML <h1>Heading</ <h1>Main Title</h1> to
headings. <h1> is h1> <h6>Sub Note</h6>
the largest.
<p> Defines a <p> ... </p> <p>This is a paragraph of
paragraph. text.</p>
Tag Description Syntax Example
<hr> Inserts a horizontal <hr> <p>Above
rule. line</p><hr><p>Bel
ow line</p>
<a> Defines a hyperlink. <a href="URL"> ... <a
</a> href="[Link]
com">Google</a>
<img> Embeds an image. <img src="..." <img src="[Link]"
alt="..."> alt="Site Logo">
<ul> Defines an <ul> ... </ul> <ul><li>Item
unordered list. 1</li><li>Item
2</li></ul>
<ol> Defines an ordered <ol> ... </ol> <ol><li>First</
list. li><li>Second</
li></ol>
<li> Defines a list item. <li> ... </li> <ul><li>Item
A</li></ul>
<table> Defines a table. <table> ... </table> <table><tr><td>Cell
</td></tr></table>
<tr> Defines a row in a <tr> ... </tr> <tr><td>Row
Tag Description Syntax Example
<td> Defines a cell in a <td> ... </td> <td>Data</td>
table.
<th> Defines a header <th> ... </th> <th>Header</th>
cell in a table.
<form> Defines a form for <form> ... </form> <form
user input. action='[Link]'>
</form>
<input> Defines an input <input type='...'> <input type='text'
field. name='username'>
<label> Defines a label for <label> ... </label> <label
an input. for='name'>Name:</
label>
<textarea> Defines a multiline <textarea> ... <textarea
input field. </textarea> rows='4'></textarea
>
<button> Defines a clickable <button> ... <button>Submit</
button. </button> button>
<div> Defines a division or <div> ... </div> <div><p>Section</
section. p></div>
Tag Description Syntax Example
<span> Defines a section in <span> ... </span> <span>Inline
a document (inline). Text</span>
<strong> Defines important <strong> ... <strong>Important!
text (bold). </strong> </strong>
<em> Defines emphasized <em> ... </em> <em>Note
text (italic). this</em>