copy Copy chevron-down
Cheat Sheet chevron-right Web Development HTML This HTML cheat sheet lists the common HTML and HTML5 tags in readable layout.
Getting Started
Copy <! DOCTYPE html >
< html lang = " en " >
< head >
< meta charset = " UTF-8 " >
< meta http-equiv = " X-UA-Compatible " content = " IE=edge " >
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " >
< title > HTML5 Boilerplate </ title >
</ head >
< body >
< h1 > Hello world, hello QuickRef.ME! </ h1 >
</ body >
</ html > Or try it out in the jsfiddlearrow-up-right
Copy <!-- this is a comment -->
<!--
Or you can comment out a
large number of lines.
--> See: The Paragraph elementarrow-up-right
The URL that the hyperlink points to
Relationship of the linked URL
Link target location:
_self, _blank, _top, _parent
See: The <a> Attributesarrow-up-right
Required, Image location (URL | Path)
How the browser should load
See: The Image Embed elementarrow-up-right
Text Formatting Tags
You should only have one h1 on your page
Section Divisions
Division or Section of Page Content
Section of text within other content
These are the tags used to divide your page up into sections
↓ Preview
See: The Inline Frame elementarrow-up-right
JavaScript in HTML
External JavaScript
External stylesheet
Header Navigation
Content that’s independent
Embeds a sound, or an audio stream
The Bidirectional Isolate element
Draw graphics via JavaScript
A set of pre-defined options
A dialog box or sub-window
Embeds external application
A caption or legend for a figure
Footer or least important
Masthead or important information
The main content of the document
A scalar value within a known range
A section of navigation links
The result of a calculation
A container for multiple image sources
The completion progress of a task
Provides fall-back parenthesis
Defines the pronunciation of character
Represents a ruby annotation
A group in a series of related content
Resources for the media elements
A summary for the <details> element
Defines the fragments of HTML
Text tracks for the media elements
↓ Preview
↓ Preview
link arrow-up-right
↓ Preview
汉hàn字zì
↓ Preview
I Love QuickRef.ME
Defines a header cell in a table
Defines a cell in a table
Defines a group of columns
Defines a column within a table
Groups the header content
Groups the footer content
<td> Attributes
Number of columns a cell should span
One or more header cells a cell is related to
Number of rows a cell should span
See: td#Attributesarrow-up-right
<th> Attributes
Number of columns a cell should span
One or more header cells a cell is related to
Number of rows a cell should span
Description of the cell's content
The header element relates to
See: th#Attributesarrow-up-right
See: The Unordered List elementarrow-up-right
See: The Ordered List elementarrow-up-right
Definition list
See: The Description List elementarrow-up-right
↓ Preview
Email:
Password:
Remember me
The HTML <form> element is used to collect and send information to an external source.
Name of form for scripting
HTTP method, POST / GET (default)
Runs when the form was submit
Runs when the form was reset
for in a label references an input's id attribute
↓ Preview
Username:
See: HTML input Tagsarrow-up-right
↓ Preview
Textarea is a multiple-line text input control
↓ Preview
Male Female
Radio buttons are used to let the user select exactly one
↓ Preview
Soccer Baseball
Checkboxes allows the user to select one or more
↓ Preview
City: Sydney Melbourne Cromwell
A select box is a dropdown list of options
↓ Preview
Your favorite monster Kraken
Sasquatch
↓ Preview
Choose a browser:
↓ Preview
Name:
Submit the data to server; Reset to default values
The input tag is an empty element, identifying the particular type of field information to obtain from a user.
The type of data that is being input
Used to describe this data in the HTTP request
Unique identifier that other HTML elements
Stops the user from modifying
The radio or checkbox select or not
Disable auto capitalization
Maximum number of characters
Minimum number of characters
Minimum numerical value on range & number
Maximum numerical value on range & number
How the number will increment in range & number
Also see: Attributes for the <input> elementarrow-up-right
New Input Types in HTML5
When its keyboard focused
See: Input pseudo classes
The meta tag describes meta data within an HTML document. It explains additional material about the HTML.
Used by Facebook, Instagram, Pinterest, LinkedIn, etc.
See: Twitter Card Documentationarrow-up-right
See: Geotaggingarrow-up-right