HTML Quick List
HTML Quick List. You can print it for everyday use.
HTML Basic Document
<!DOCTYPE html><html>
<head>
<title>Document title
title
head
<
body
Visible text...
body
html
Basic Tags
<
h1
Largest heading
h1
<
h2
. . .
h2
<
h3
. . .
h3
<
h4
. . .
h4
<
h5
. . .
h5
<
h6
Smallest heading
h6
<
p
This is a paragraph.
p
<
br
(line break)
<
hr
(Horizontal line)
Text Formatting
<
b
Bold text
b
<
code
Computer code
code
<
em
Emphasized text
em
<
i
Italic text
i
<
kbd
Keyboard input
kbd
<
pre
Preformatted text
pre
<
small
Smaller text
small
<
strong
Important text
strong
<
abbr
(Abbreviation)
<
address(Contact information)
<
bdo
(Text direction)
<
blockquote
(A section quoted from another source)
<
cite
(Name of work)
<
del
(Deleted text)
<
ins
(Inserted text)
<
sub
(Subscript text)
<
sup
(Superscript text)
Links
Normal link:
<a href="http://www.example.com/">Link text
a
Image link:
<a href="http://www.example.com/">
<img src="URL" alt=">Alternative text
"
a
Email link:
<a href="mailto:webmaster@example.com">Send e-mail
a
Bookmark:
<a id="tips">Tips section
a
<a href="#tips">Jump to tips section
a
Images
<img src="URL" alt=">Alternative text
"
height
=
"
42
"
width
=
"
42
"
Styles/Sections
<style type="text/css" h1{>color:
red
;
}
p
{
color:
blue
;
}
style
<
div
Block-level element in a document
div
<
span
Inline element in a document
span
Unordered list
<
ul
<
li
Projects
li
<
li
Projects
li
ul
<
ol
<
liFirst item
li
<
li
Second item
li
ol
Defines a list
<
dl
<
dtItem 1
dt
<
dd
Description of item 1
dd
<
dt
Item 2
dt
<
dd
Description of item 2
dd
dl
Tables
<table border="1">
<tr>
<th>Table Caption
th
<
th
Table Caption
th
tr
<
tr
<
tdTable data
td
<
td
Table data
td
tr
table
Iframe
<
iframe
src
=
"
demo_iframe.htm
"
iframe
<
form
action
=
"
demo_form.php
"
method
=
"
post/get
"
<
input
type
=
"
text
"
name
=
"
email
"
size
=
"
40
"
maxlength
=
"
50
"
<
input
type
=
"
password
"
<
input
type
=
"
checkbox
"
checked
=
"
checked
"
<
input
type
=
"
radio
"
checked
=
"
checked
"
<
input
type
=
"
submit
"
value
=
"
Send
"
<
input
type
=
"
reset
"
<
input
type
=
"
hidden
"
<
select
<
option
Apple
option
<
option
selected
=
"
selected
"
Banana
option
<
option
Cherry
option
select
<
textarea
name
=
"
comment
"
rows
=
"
60
"
cols
=
"
20
"
textarea
form
<is equivalent to
<
&
gt; is equivalent to
© is equivalent to ©