HTML Tags
HTML Tags
Name
HTML Tag
Browser View
HTML
Comment
<!--
HTML Anchor
<a>
<a href="http://www.domain.com/">
Visit Our Site</a>
HTML Bold
<b>
<b>Example</b>
Example
HTML
Big (Text)
<big>
<big>Example</big>
Example (Tip)
Body of HTML
Document
<body>
<body>The content of
your HTML page</body>
HTML Line
Break
<br>
HTML Center
<center>
<dd>
<dl>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
</dl>
Definition Term
Definition of the term
Definition Term
Definition of the term
<dl>
<dl>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
</dl>
Definition Term
Definition of the term
Definition Term
Definition of the term
HTML
Definition
Term
<dt>
<dl>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
</dl>
Definition Term
Definition of the term
Definition Term
Definition of the term
HTML
Emphasis
<em>
HTML Embed
Object
<embed>
(Tip)
HTML Embed
Object
<embed>
HTML Font
<font>
Example (Tip)
HTML Font
<font>
Example (Tip)
HTML Font
<font>
Example
HTML
Definition
Description
HTML
Definition List
(Tip)
HTML Form
Name
HTML
Heading
HTML
Heading
HTML
Heading
HTML
Heading
HTML
Heading
HTML
Heading
<form>
<form action="mailto:[email protected]"
>
Name: <input name="Name" value=""
size="10"><br>
Email: <input name="Email" value=""
size="10"><br>
<center><input type="submit"></center>
</form>
HTML Tag
Name:
(Tip)
Email:
Submit
Browser View
1
2
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<h1>Heading
<h2>Heading
<h3>Heading
<h4>Heading
<h5>Heading
<h6>Heading
Heading of
HTML
Document
<head>
HTML
Horizontal
Rule
<hr>
<hr />
HTML
Horizontal
Rule
<hr>
HTML
Horizontal
Rule
<hr>
HTML
Horizontal
Rule
<hr>
(Internet
Explorer)
HTML
Horizontal
Rule
<hr>
(Internet
Explorer)
HTML
Hypertext
Markup
Language
<html>
<html>
<head>
<meta>
<title>Title of your web page</title>
</head>
<body>HTML web page contents
</body>
</html>
HTML Italic
<i>
<i>Example</i>
Example
3
4
5
1
2
3
4
5
6
Example</h1>
Example</h2>
Example</h3>
Example</h4>
Example</h5>
Example</h6>
(Tip)
Example:
HTML Input
Field
HTML Input
Password
<input>
<input>
Example: (Tip)
Submit
Submit
Example:
HTML Input
(Backgroun
d Color)
<input>
(Internet
Explorer)
Example: (Tip)
Submit
Example:
HTML Input
(Image
Submit
Button)
<input>
HTML Input
(Comment
Box)
<input>
HTML Input
(Radio
Button)
HTML Input
<input>
<input>
Example: (Tip)
Example: (Tip)
Submit
Clear
Example: (Tip)
Select an option:
Option 1
Option 2
Option 3
Submit
Example: (Tip)
(Checkbox)
Select an option:
Selection 1
Selection 2
Selection 3
Submit
Example 1: (Tip)
Example 1:
HTML List
Item
<menu>
<li type="disc">List item 1</li>
<li type="circle">List item 2</li>
<li type="square">List item 3</li>
</MENU>
<li>
Example 2:
<ol type="i">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
HTML Link
<link>
List item 1
List item 2
List item 3
Example 2:
i.
List item 1
ii.
List item 2
iii.
List item 3
iv.
List item 4
<head>
<link rel="stylesheet" type="text/css"
href="style.css" />
</head>
(Tip)
HTML
Scrolling
Text
HTML Menu
<marquee
>
(Internet
Explorer)
<menu>
<menu>
<li type="disc">List item 1</li>
<li type="circle">List item 2</li>
<li type="square">List item 3</li>
</menu>
HTML Meta
<meta>
HTML Meta
<meta>
List item 1
List item 2
List item 3
>
HTML Meta
<meta>
HTML Meta
<meta>
HTML Meta
<meta>
HTML Meta
<meta>
Name
HTML
Ordered List
HTML Tag
<ol>
item
item
item
item
Browser View
Numbered
1</li>
2</li>
3</li>
4</li>
1.
List item 1
2.
List item 2
3.
List item 3
4.
List item 4
List item 1
6.
List item 2
Lowercase Letters
7.
List item 3
<ol type="a">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
8.
List item 4
Lowercase Letters
a.
List item 1
Capital Letters
b.
List item 2
<ol type="A">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
c.
List item 3
d.
List item 4
Capital Letters
A. List item 1
B. List item 2
C. List item 3
D. List item 4
Capital Letters Special Start
C. List item 1
D. List item 2
E.
List item 3
F.
List item 4
List item 1
ii.
List item 2
iii.
List item 3
<ol type="I">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
iv.
List item 4
HTML Listbox
Option (Drop <option>
Down Box)
HTML Mailto
Email Link
<a
href="mailto:[email protected]">Email
Link</a>
HTML
Paragraph
<a>
<p>
List item 1
II.
List item 2
III.
List item 3
IV.
List item 4
List item 1
VIII.
List item 2
IX.
List item 3
X.
List item 4
option 2
Email Link
Attributes:
Example 1:
This is an example
displaying the use
of the paragraph tag.
Example 2:
This is an example
displaying the use
of the paragraph tag.
Example 3:
This is an example
displaying the use
of the paragraph tag.
HTML
Small(Text)
<small>
<small>Example</small>
Example
HTML
Deleted Text
<strike>
<strike>Example</strike>
Example
<strong>Example</strong>
Example
(Tip)
Example 1:
<table border="4" cellpadding="2"
cellspacing="2" width="100%">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
</table>
Example 1: (Tip)
Column 1
Column 2
HTML Table
<table>
Column 2
Example 3:
Column 1
Column 2
Row 2
Row 2
<td>Row 2</td>
</tr>
</table>
<td>
HTML Table
Header
<th>
<div align="center">
<table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td>Row 2</td>
<td>Row 2</td>
<td>Row 2</td>
</tr>
<tr>
<td>Row 3</td>
<td>Row 3</td>
<td>Row 3</td>
</tr>
<tr>
<td>Row 4</td>
<td>Row 4</td>
<td>Row 4</td>
</tr>
</table>
</div>
HTML
Document
Title
<title>
HTML Table
Row
<tr>
Column 1
HTML
Teletype
<tt>
<tt>Example</tt>
Example
HTML
Underline
<u>
<u>Example</u>
Example
Example 1:
<ul>
Example 1:<br>
<br>
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>
<br>
Example 2:<br>
<ul type="disc">
<li>List item 1</li>
<li>List item 2</li>
HTML Table
Data
HTML
Unordered
List
Column 1
Column 1
Row 2
Row 3
Row 4
Column 2
Column 2
Row 2
Row 3
Row 4
List item 1
List item 2
Example 2:
Column 3
Row 2
Row 3
Row 4
Column 2
<ul type="circle">
<li>List item 3</li>
<li>List item 4</li>
</ul>
</ul>
List item 1
List item 2
o
List item 3
List item 4
<html>
<head>
Contains information about the page such as the TITLE, META tags for proper Search
STYLE tags, which determine the page layout, and JavaScript coding for special effec
Your title should contain the page's most relevant keyword phrase, which are words
web page. It will also be displayed within the search results of the search engines.
</head>
<body>
</body>
The area between the opening and closing body tags will contain everything that wil
web browser, such as text and graphics. All of the information will be HTML coded.
</html>
Text
Formatting
Browser View
HTML Code
<p>text</p>
Specifies a paragraph.
<br>
This is an example of
text being displayed with various
line breaks. The text will
break to the next line each time the break tag is used.
<blockquote>text</blockquote>
<h1>heading 1 Text</h1>
Specifies a heading.
<h2>heading 2 Text</h2>
<h3>heading 3 Text</h3>
<h4>heading 4 Text</h4>
<h5>heading 5 Text</h5>
<h6>heading 6 Text</h6>
<pre>text</pre>
<pre>
This is an example of displaying text
within the <pre> tags. Text will
display exactly as it looks between
the tags without adding any break or
paragraph tags.
<hr />
Inserts a horizontal rule.
Links
Browser View
HTML Code
Linked Text
Email Link
<a href="http://www.domain.com"><img
src="http://www.domain.com/image.gif"></a>
<a name="NAME"></a> Specifies a target location within a web
page.
Text Link leading to the target location within the same web
Images
HTML Code
Browser View
Unordered list
HTML Code
<ul>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ul>
Browser View
List Item
List Item
List Item
Ordered list
HTML Code
<ol>
<li>First List Item</li>
<li>Second List Item</li>
<li>Third List Item</li>
</ol>
Browser View
1.
2.
3.
Definition list
HTML Code
Browser View
<dl>
<dt>First List Item</dt>
<dd>First List Item Description</dd>
<dt>Second List Item</dt>
<dd>Second List Item Description</dd>
<dt>Third List Item</dt>
<dd>Third List Item Description</dd>
</dl>
Tables
HTML Code
Browser View
Forms
Browser View
HTML Code
Option 1
Option 2
Option 3
Selection 1
Selection 2
option 2
<input type="password">
<input type="Submit" value="Submit">
<input type="reset">
Submit
Reset
<input type="hidden">
</form>
Selection 3