Quickref Me HTML
Quickref Me HTML
HTML cheatsheet
This HTML quick reference cheat sheet lists the common HTML and HTML5 tags in readable
layout.
# Getting started
hello.html Comment
<h1> This is Heading 1 </h1> Division or Section of Page <iframe title="New York"
<div></div>
<h2> This is Heading 2 </h2> Content width="342"
<h3> This is Heading 3 </h3> height="306"
Section of text within other
<h4> This is Heading 4 </h4> <span></span> id="gmap_canvas"
content
<h5> This is Heading 5 </h5> src="https://maps.google.com/maps?
<h6> This is Heading 6 </h6> <p></p> Paragraph of Text q=2880%20Broadway,%20New%20York&t=&z=13&ie
=UTF8&iwloc=&output=embed"
<br> Line Break scrolling="no">
</iframe>
<hr> Basic Horizontal Line
↓ Preview
These are the tags used to divide your page up
You should only have one h1 on your page into sections
# HTML5 Tags
Document Header Navigation HTML5 Tags
汉字
source Resources for the media elements
# HTML Tables
Table Example HTML Table Tags <td> Attributes
<table> <table> Defines a table colspan Number of columns a cell should span
<thead>
<th> Defines a header cell in a table One or more header cells a cell is
<tr> headers
related to
d / d
e a ed o
<td>name</td>
<tr> Defines a row in a table
<td>age</td>
rowspan Number of rows a cell should span
</tr> <td> Defines a cell in a table
</thead>
See: td#Attributes
<tbody> <caption> Defines a table caption
<tr>
<td>Roberta</td> <colgroup> Defines a group of columns
<th> Attributes
<td>39</td>
<col> Defines a column within a table colspan Number of columns a cell should span
</tr>
<tr>
<thead> Groups the header content One or more header cells a cell is
<td>Oliver</td> headers
related to
<td>25</td> <tbody> Groups the body content
</tr>
rowspan Number of rows a cell should span
</tbody> <tfoot> Groups the footer content
</table> abbr Description of the cell's content
See: th#Attributes
# HTML Lists
Unordered list Ordered list Definition list
See: The Unordered List element See: The Ordered List element See: The Description List element
# HTML Forms
Form tags Form Attribute Label tags
<form method="POST" action="api/login"> name Name of form for scripting <!-- Nested label -->
<label for="mail">Email: </label> <label>Click me
<input type="email" id="mail" name="mail"
action URL of form script <input type="text" id="user" name="name"/>
<br/> </label>
method HTTP method, POST / GET (default)
<label for="pw">Password: </label>
<input type="password" id="pw" name="pw">
enctype Media type, See enctype <!-- 'for' attribute -->
<br/>
<label for="user">Click me</label>
<input type="submit" value="Login">
onsubmit Runs when the form was submit <input id="user" type="text" name="name"/>
<br/>
<input type="checkbox" id="ck" name="ck"> onreset Runs when the form was reset
<label for="ck">Remember me</label> for in a label references an input's id attribute
</form>
Password:
↓ Preview ↓ Preview
Login
Remember me Username:
<input type="radio" name="gender" id="m"> <input type="checkbox" name="s" id="soc"> <label for="city">City:</label>
<label for="m">Male</label> <label for="soc">Soccer</label> <select name="city" id="city">
<input type="radio" name="gender" id="f"> <input type="checkbox" name="s" id="bas"> <option value="1">Sydney</option>
<label for="f">Female</label> <label for="bas">Baseball</label> <option value="2">Melbourne</option>
<option value="3">Cromwell</option>
↓ Preview ↓ Preview </select>
City: Sydney
The input tag is an empty element, identifying the particular type of field type="checkbox"
information to obtain from a user.
type="radio"
Also see: Attributes for the <input> element See: Input pseudo classes
The meta tag describes meta data within an HTML document. It explains <meta property="og:type" content="website">
additional material about the HTML. <meta property="og:locale" content="en_CA">
<meta property="og:title" content="HTML cheatsheet">
<meta charset="utf-8"> <meta property="og:url" content="https://quickref.me/html">
<meta property="og:image" content="https://xxx.com/image.jpg">
<meta property="og:site_name" content="Name of your website">
<!-- title -->
<meta property="og:description" content="Description of this page">
<title>···</title>
<meta property="og:title" content="···">
<meta name="twitter:title" content="···">
Used by Facebook, Instagram, Pinterest, LinkedIn, etc.
# Also see
HTML 4.01 Specification (w3.org)
#Notes
CSS 3 Cheatsheet JavaScript Cheatsheet GraphQL Cheatsheet Chmod Cheatsheet
Quick Reference Quick Reference Quick Reference Quick Reference