Professional Documents
Culture Documents
To use any of the following HTML tags, simply select the HTML code you'd like and copy and paste it into
your web page.
body of
<body>The content of your HTML
<body> HTML Contents of your web page (Tip)
page</body>
document
The contents of your page<br>The contents of The contents of your web page
<br> line break
your page The contents of your web page
<center>This will center your
<center> center This will center your contents
contents</center>
<dl>
<dt>Definition Term</dt> Definition Term
definition
<dd>Definition of the term</dd> Definition of the term
<dd> descriptio
<dt>Definition Term</dt> Definition Term
n
<dd>Definition of the term</dd> Definition of the term
</dl>
<dl>
<dt>Definition Term</dt> Definition Term
definition <dd>Definition of the term</dd> Definition of the term
<dl>
list <dt>Definition Term</dt> Definition Term
<dd>Definition of the term</dd> Definition of the term
</dl>
<dl>
<dt>Definition Term</dt> Definition Term
definition <dd>Definition of the term</dd> Definition of the term
<dt>
term <dt>Definition Term</dt> Definition Term
<dd>Definition of the term</dd> Definition of the term
</dl>
This is an <em>Example</em> of using This is an Example of using
<em> emphasis
the emphasis tag the emphasis tag
embed <embed src="yourfile.mid" width="100%"
<embed>
object height="60" align="center"> (Tip)
<form action="mailto:you@yourdomain.com">
Name: <input name="Name" value="" Name: (Tip)
size="10"><br>
<form> form Email: <input name="Email" value="" Email:
size="10"><br>
<center><input type="submit"></center> Submit Query
</form>
heading of
<head>Contains elements describing the
<head> HTML Nothing will show
document</head>
document
<marquee
<marquee bgcolor="#cccccc" loop="-1"
> scrolling
scrollamount="2" width="100%">Example
(Internet text
Marquee</marquee>
Explorer)
(Tip)
<menu>
List item 1
<li type="disc">List item 1</li>
<menu> menu <li type="circle">List item 2</li> o List item 2
<li type="square">List item 3</li>
</menu>
List item 3
<meta name="Description"
content="Description of your site">
<meta> meta Nothing will show (Tip)
<meta name="keywords" content="keywords
describing your site">
<meta HTTP-EQUIV="Refresh"
<meta> meta CONTENT="4;URL=http://www.yourdomain.com Nothing will show (Tip)
/">
<meta http-equiv="Pragma" content="no-
<meta> meta Nothing will show (Tip)
cache">
<meta> meta <meta name="rating" content="General"> Nothing will show (Tip)
<meta> meta <meta name="robots" content="all"> Nothing will show (Tip)
<meta> meta <meta name="robots" Nothing will show (Tip)
content="noindex,follow">
<ol> ordered Numbered Numbered
list 1. List item 1
<ol> 2. List item 2
<li>List item 1</li>
<li>List item 2</li> 3. List item 3
<li>List item 3</li>
<li>List item 4</li> 4. List item 4
</ol>
Numbered Special Start
Numbered Special Start
This is an example displaying the use of the This is an example displaying the
paragraph tag. <p> This will create a line break use of the paragraph tag.
and a space between lines.
This will create a line break and
Attributes: a space between lines.
1. INTRODUCTORY MATERIAL
o What is unique about this guide
o positioning
o dividers
o lists
o special characters
o forms
o tables
o frames
o miscellaneous
Important: If you are not clear about the differences between the various versions of
HTML, I suggest that you read my discussion of the development of HTML, or the
World Wide Web Consortium HTML activity statement.
BASIC ELEMENTS
Document Type <HTML></HTML> (beginning and end of file)
Title <TITLE></TITLE> (must be in header)
Header <HEAD></HEAD> (descriptive info, such as title)
Body <BODY></BODY> (bulk of the page)
STRUCTURAL DEFINITION
Heading <H?></H?> (the spec. defines 6 levels)
<H? ALIGN=LEFT|CENTER|
Align Heading RIGHT></H?>
Division <DIV></DIV>
Align Division <DIV ALIGN=LEFT|RIGHT|CENTER|JUSTIFY></DIV>
4.0 Defined Content <SPAN></SPAN>
Block Quote <BLOCKQUOTE></BLOCKQUOTE> (usually indented)
4.0 Quote <Q></Q> (for short quotations)
4.0 Citation <Q CITE="URL"></Q>
Emphasis <EM></EM> (usually displayed as italic)
Strong Emphasis <STRONG></STRONG> (usually displayed as bold)
Citation <CITE></CITE> (usually italics)
Code <CODE></CODE> (for source code listings)
Sample Output <SAMP></SAMP>
Keyboard Input <KBD></KBD>
Variable <VAR></VAR>
Definition <DFN></DFN> (not widely implemented)
Author's
<ADDRESS></ADDRESS>
Address
Large Font Size <BIG></BIG>
Small Font Size <SMALL></SMALL>
4.0 Insert <INS></INS> (marks additions in a new version)
4.0 Time of Change <INS DATETIME=":::"></INS>
4.0 Comments <INS CITE="URL"></INS>
4.0 Delete <DEL></DEL> (marks deletions in a new version)
4.0 Time of Change <DEL DATETIME=":::"></DEL>
4.0 Comments <DEL CITE="URL"></DEL>
4.0 Acronym <ACRONYM></ACRONYM>
4.0 Abbreviation <ABBR></ABBR>
PRESENTATION FORMATTING
Bold <B></B>
Italic <I></I>
4.0* Underline <U></U> (not widely implemented)
Strikeout <STRIKE></STRIKE> (not widely implemented)
4.0* Strikeout <S></S> (not widely implemented)
Subscript <SUB></SUB>
Superscript <SUP></SUP>
Typewriter <TT></TT> (displays in a monospaced font)
Preformatted <PRE></PRE> (display text spacing as-is)
Width <PRE WIDTH=?></PRE> (in characters)
Center <CENTER></CENTER> (for both text and images)
N1 Blinking <BLINK></BLINK> (the most derided tag ever)
Font Size <FONT SIZE=?></FONT> (ranges from 1-7)
Change Font <FONT
SIZE="+|-?"></FONT>
Size
<FONT COLOR="#$$$$$
Font Color $"></FONT>
4.0* Select Font <FONT FACE="***"></FONT>
<FONT POINT-SIZE=?
N4 Point size ></FONT>
N4 Weight <FONT WEIGHT=?></FONT>
4.0* Base Font Size <BASEFONT SIZE=?> (from 1-7; default is 3)
MS Marquee <MARQUEE></MARQUEE>
POSITIONING
N3 Multi-Column <MULTICOL COLS=?></MULTICOL>
N3 Column Gutter <MULTICOL GUTTER=?></MULTICOL>
N3 Column Width <MULTICOL WIDTH=?></MULTICOL>
N3 Spacer <SPACER>
<SPACER TYPE=HORIZONTAL|
N3 Spacer Type VERTICAL|BLOCK>
N3 Size <SPACER SIZE=?>
N3 Dimensions <SPACER WIDTH=? HEIGHT=?>
N3 Alignment <SPACER ALIGN=LEFT|RIGHT|
CENTER>
N4 Layer <LAYER></LAYER>
N4 Name <LAYER ID="***"></LAYER>
N4 Location <LAYER LEFT=? TOP=?></LAYER>
<LAYER PAGEX=? PAGEY=?
N4 Rel. Position ></LAYER>
N4 Source File <LAYER SRC="***"></LAYER>
N4 Stacking <LAYER Z-INDEX=?></LAYER>
<LAYER ABOVE="***"
N4 Stack Position BELOW="***"></LAYER>
<LAYER HEIGHT=? WIDTH=?
N4 Dimensions ></LAYER>
N4 Clipping Path <LAYER CLIP=,,,></LAYER>
N4 Visible? <LAYER VISIBILITY=SHOW|HIDDEN|INHERIT></LAYER>
<LAYER BACKGROUND="$$$$$
N4 Background $"></LAYER>
<LAYER BGCOLOR="$$$$$
N4 Color $"></LAYER>
(takes same attributes as
N4 Inline Layer <ILAYER></ILAYER>
LAYER)
N4 Alt. Content <NOLAYER></NOLAYER>
DIVIDERS
Paragraph <P></P> (closing tag often unnecessary)
<P ALIGN=LEFT|CENTER|
Align Text RIGHT></P>
N Justify Text <P ALIGN=JUSTIFY></P>
Line Break <BR> (a single carriage return)
Clear Textwrap <BR CLEAR=LEFT|RIGHT|ALL>
Horizontal Rule <HR>
<HR ALIGN=LEFT|RIGHT|
Alignment CENTER>
Thickness <HR SIZE=?> (in pixels)
Width <HR WIDTH=?> (in pixels)
Width Percent <HR WIDTH="%"> (as a percentage of page width)
Solid Line <HR NOSHADE> (without the 3D cutout look)
N1 No Break <NOBR></NOBR> (prevents line breaks)
N1 Word Break <WBR> (where to break a line if needed)
LISTS
Unordered List <UL><LI></UL> (before each list item)
Compact <UL COMPACT></UL>
<UL TYPE=DISC|CIRCLE|
Bullet Type SQUARE> (for the whole list)
<LI TYPE=DISC|CIRCLE|
Bullet Type SQUARE> (this & subsequent)
Ordered List <OL><LI></OL> (before each list item)
Compact <OL COMPACT></OL>
Numbering Type <OL TYPE=A|a|I|i|1> (for the whole list)
Numbering Type <LI TYPE=A|a|I|i|1> (this & subsequent)
Starting Number <OL START=?> (for the whole list)
Starting Number <LI VALUE=?> (this & subsequent)
Definition List <DL><DT><DD></DL> (<DT>=term, <DD>=definition)
Compact <DL COMPACT></DL>
Menu List <MENU><LI></MENU> (before each list item)
Compact <MENU COMPACT></MENU>
Directory List <DIR><LI></DIR> (before each list item)
Compact <DIR COMPACT></DIR>
SPECIAL CHARACTERS
Special
&#?; (where ? is the ISO 8859-1 code)
Character
< <
> >
& &
" "
Registered TM ®
Registered TM ®
Copyright ©
Copyright ©
Non-Breaking
Space
(Complete list at http://www.htmlhelp.com/reference/charset)
FORMS
<FORM ACTION="URL"
Define Form METHOD=GET|POST></FORM>
4.0* File Upload <FORM ENCTYPE="multipart/form-data"></FORM>
<INPUT TYPE="TEXT|PASSWORD|CHECKBOX|RADIO|
Input Field FILE|BUTTON|IMAGE|HIDDEN|SUBMIT|RESET">
Field Name <INPUT NAME="***">
Field Value <INPUT VALUE="***">
Checked? <INPUT CHECKED> (checkboxes and radio boxes)
Field Size <INPUT SIZE=?> (in characters)
Max Length <INPUT MAXLENGTH=?> (in characters)
4.0 Button <BUTTON></BUTTON>
<BUTTON
4.0 Button Name NAME="***"></BUTTON>
4.0 Button Type <BUTTON TYPE="SUBMIT|RESET|BUTTON"></BUTTON>
<BUTTON
4.0 Default Value VALUE="***"></BUTTON>
4.0 Label <LABEL></LABEL>
<LABEL
4.0 Item Labelled FOR="***"></LABEL>
Selection List <SELECT></SELECT>
<SELECT
Name of List NAME="***"></SELECT>
# of Options <SELECT SIZE=?></SELECT>
Multiple Choice <SELECT MULTIPLE> (can select more than one)
Option <OPTION> (items that can be selected)
Default Option <OPTION SELECTED>
Option Value <OPTION VALUE="***">
<OPTGROUP
4.0 Option Group LABEL="***"></OPTGROUP>
<TEXTAREA ROWS=? COLS=?
Input Box Size ></TEXTAREA>
<TEXTAREA
Name of Box NAME="***"></TEXTAREA>
N2 Wrap Text <TEXTAREA WRAP=OFF|HARD|SOFT></TEXTAREA>
4.0 Group elements <FIELDSET></FIELDSET>
4.0 Legend <LEGEND></LEGEND> (caption for fieldsets)
4.0 Alignment <LEGEND ALIGN="TOP|BOTTOM|LEFT|RIGHT"></LEGEND>
TABLES
Define Table <TABLE></TABLE>
4.0* Table Alignment <TABLE ALIGN=LEFT|RIGHT|CENTER>
Table Border <TABLE BORDER></TABLE> (either on or off)
Table Border <TABLE BORDER=?></TABLE> (you can set the value)
Cell Spacing <TABLE CELLSPACING=?>
Cell Padding <TABLE CELLPADDING=?>
Desired Width <TABLE WIDTH=?> (in pixels)
Width Percent <TABLE WIDTH=%> (percentage of page)
4.0* Table Color <TABLE BGCOLOR="$$$$$$"></TABLE>
<TABLE FRAME=VOID|ABOVE|BELOW|HSIDES|LHS|RHS|
4.0 Table Frame VSIDES|BOX|BORDER></TABLE>
4.0 Table Rules <TABLE RULES=NONE|GROUPS|ROWS|COLS|ALL></TABLE>
<TABLE BORDERCOLOR="$$$$$
MS Border Color $"></TABLE>
<TABLE BORDERCOLORDARK="$$$$$
MS Dark Border $"></TABLE>
<TABLE BORDERCOLORLIGHT="$$$$$
MS Light Border $"></TABLE>
Table Row <TR></TR>
Alignment <TR ALIGN=LEFT|RIGHT|CENTER|MIDDLE|BOTTOM>
(must appear within table
Table Cell <TD></TD>
rows)
Alignment <TD ALIGN=LEFT|RIGHT|CENTER VALIGN=TOP|MIDDLE|BOTTOM>
No linebreaks <TD NOWRAP>
Columns to Span <TD COLSPAN=?>
Rows to Span <TD ROWSPAN=?>
4.0* Desired Width <TD WIDTH=?> (in pixels)
N3 Width Percent <TD WIDTH="%"> (percentage of table)
4.0* Cell Color <TD BGCOLOR="#$$$$$$">
(same as data, except bold
Header Cell <TH></TH>
centered)
Alignment <TH ALIGN=LEFT|RIGHT|CENTER|MIDDLE|BOTTOM>
No Linebreaks <TH NOWRAP>
Columns to Span <TH COLSPAN=?>
Rows to Span <TH ROWSPAN=?>
4.0* Desired Width <TH WIDTH=?> (in pixels)
N3 Width Percent <TH WIDTH="%"> (percentage of table)
4.0* Cell Color <TH BGCOLOR="#$$$$$$">
4.0 Table Body <TBODY>
4.0 Table Footer <TFOOT></TFOOT> (must come before THEAD>
4.0 Table Header <THEAD></THEAD>
Table Caption <CAPTION></CAPTION>
<CAPTION ALIGN=TOP|BOTTOM|LEFT|
Alignment RIGHT>
4.0 Column <COL></COL> (groups column attributes)
Columns
4.0 <COL SPAN=?></COL>
Spanned
4.0 Column Width <COL WIDTH=?></COL>
4.0 Width Percent <COL WIDTH="%"></COL>
4.0 Group columns <COLGROUP></COLGROUP> (groups column structure)
Columns
4.0 <COLGROUP SPAN=?></COLGROUP>
Spanned
4.0 Group Width <COLGROUP WIDTH=?></COLGROUP>
4.0 Width Percent <COLGROUP WIDTH="%"></COLGROUP>
FRAMES
Frame
4.0* <FRAMESET></FRAMESET> (instead of <BODY>)
Document
<FRAMESET
4.0* Row Heights ROWS=,,,></FRAMESET> (pixels or %)
<FRAMESET
4.0* Row Heights ROWS=*></FRAMESET> (* = relative size)
<FRAMESET
4.0* Column Widths COLS=,,,></FRAMESET> (pixels or %)
<FRAMESET
4.0* Column Widths COLS=*></FRAMESET> (* = relative size)
4.0* Borders <FRAMESET FRAMEBORDER="yes|no"></FRAMESET>
<FRAMESET BORDER=?
4.0* Border Width ></FRAMESET>
4.0* Border Color <FRAMESET BORDERCOLOR="#$$$$$$"></FRAMESET>
<FRAMESET FRAMESPACING=?
N3 Frame Spacing ></FRAMESET>
4.0* Define Frame <FRAME> (contents of an individual frame)
Display
4.0* <FRAME SRC="URL">
Document
4.0* Frame Name <FRAME NAME="***"|_blank|_self|_parent|_top>
4.0* Margin Width <FRAME MARGINWIDTH=?> (left and right margins)
4.0* Margin Height <FRAME MARGINHEIGHT=?> (top and bottom margins)
<FRAME SCROLLING="YES|NO|
4.0* Scrollbar? AUTO">
4.0* Not Resizable <FRAME NORESIZE>
<FRAME FRAMEBORDER="yes|
4.0* Borders no">
<FRAME BORDERCOLOR="#$$$$$
4.0* Border Color $">
Unframed
4.0* <NOFRAMES></NOFRAMES> (for non-frames browsers)
Content
4.0 Inline Frame <IFRAME></IFRAME> (takes same attributes as FRAME)
<IFRAME WIDTH=? HEIGHT=?
4.0 Dimensions ></IFRAME>
<IFRAME WIDTH="%"
4.0 Dimensions HEIGHT="%"></IFRAME>
MISCELLANEOUS
Comment <!-- *** --> (not displayed by the browser)
Prologue <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
Searchable <ISINDEX> (indicates a searchable index)
Prompt <ISINDEX PROMPT="***"> (text to prompt input)
Send Search <A HREF="URL?***"></a> (use a real question mark)
URL of This File <BASE HREF="URL"> (must be in header)
Base Window
4.0* <BASE TARGET="***"> (must be in header)
Name
<LINK REV="***"
Relationship REL="***" HREF="URL"> (in header)
<LINK TYPE="***"
N4 Linked File SRC="***"></LINK>
Meta
<META> (must be in header)
Information
Style Sheets <STYLE></STYLE> (implementations vary)
4.0 Bidirect Off <BDO DIR=LTR|RTL></BDO> (for certain character sets)
If you're looking for web design tips, this section is for you.
Developing a professional web site will play an important role in your success. However,
finding web design tips to assist you can be difficult.
Although HTML tutorials will provide you with an overview of HTML and web site design,
unfortunately, that's about it. They usually don't provide you with the little web site design
tips and tricks that are used to create special effects within your web pages.
Although learning HTML and some basic web site design techniques is very important, if you
want to add special effects to your web pages, you will need to learn some additional coding
techniques, such as using CSS and JavaScript.
The following web design tips provide a wealth of information to assist you in many aspects
of web site design. You will find web design tips and advice, HTML tips and codes, CSS
codes and JavaScript codes to assist you in creating special effects within your web pages.
However, please ensure that you use these web design tips and codes cautiously. Make sure
you don't overdo it and use too many special effects, as you don't want to offend your
visitors. The key to creating a successful web site is to only use tips and codes that will
enhance your visitors experience on your web site.
When you're ready to begin, simply click on the links below to find the web design tips and
codes you're looking for. Once you locate a special code, copy and paste it into the HTML
portion of your web page where indicated within the instructions on each web page.
• Displaying HTML Web Page Text in a Specific Font • HTML Forms: Creating a Default Option
Style • HTML Forms: Adding a Color Background to Input
• HTML Heading Tags Boxes
• Enlarging Text Size within a Web Page • HTML Forms: Customizing the Size of an Input
• Highlighting HTML Web Page Text Box
• Wrapping Text Around an Image within an HTML • HTML Forms: Specifying Maximum Text Typed
Web Page within an Input Box
• Indenting Text within a Web Page • HTML Forms: Displaying Default Text within an
• Using Superscripts and Subscripts Input Box
• Creating a Radio or Checkbox HTML Form
• Formatting an HTML Web Page Form
HTML Links • Using an Image as a Submit Button within an
HTML Web Page
• Creating an HTML Status Bar Link Description • Disappearing HTML Web Page Form Input Box
• Creating an HTML Mouseover Text Description Text
• Creating an HTML Escape from Frames Link • Flashing Cursor within an HTML Form Input Box on
• Creating HTML Links within the same Web Page Web Page Load
• Removing an HTML Web Page Link Underline • Tabbing Through HTML Web Page Form Input
• Changing an HTML Web Page Link Color Boxes
• Auto Fill an Email Subject
• Creating HTML Hyperlinks within a Web Page
• Highlighting HTML Web Page Links
HTML Lists
• Creating a Web Page Download Link
• How to Display an Email Address on a Web Page • Customizing HTML List Item Bullets
and Protect it From Spammers • Creating Customized HTML Bulleted Lists
• Creating Custom Non-Indented HTML Web Page
List Item Bullets
Web Page Windows
• Using CSS (Cascading Style Sheets) Style Tags to Web Page Meta Tags
Customize Links
• Using Cascading Style Sheets (CSS) to Specify • Preventing Web Page Browser Cache
Web Page Fonts • Redirect Visitors to a New Web Page
• Using CSS to Customize Your HTML Web Page • Preventing Search Engines From Indexing a Web
Form Scroll Bar Colors Page
• Using CSS to Customize Your HTML Web Page • Using META Tags for Web Page Transitions
Form Background Color
• Using CSS to Highlight Web Page Links on Mouse
Over Miscellaneous Tips
• Using CSS to Display a Non-Tiling Background
Image within a Web Page
• Viewing File Extensions in Windows 2000, XP and
• Using CSS to Create a Drop Capital Effect within a
Vista
Web Page
When you begin designing your HTML web pages, you may find that many HTML courses fall short when it comes
to providing you with special effect HTML codes and tips.
However, there are many special effect HTML codes that will enable you to enhance your visitors experience
tremendously.
When trying to decide what HTML codes to use within your web pages, keep in mind, if it doesn't enhance your
web page, it's probably best to leave it out, as the more special effects you add to your page, the longer your page
will take to load.
In addition, prior to using any of these HTML codes and tips within your web pages, you must ensure that the
effect you're trying to achieve doesn't irritate your visitors.
For example, using HTML codes that load web pages within web pages may crash your visitors browser. In
addition, using excessive pop up windows, frames and placing scrolling text within the status bar can be very
irritating and cause your visitors to leave your web site and never return.
Please ensure you select your special HTML codes very carefully and use them to your fullest advantage.
Confusing
Pop up messages
Poor load time
Over use of Java
Poor overall appearance
Poor use of HTML tables
Spelling/Grammar mistakes
Poor organization
Inconsistent page design
No contact information
No 'about us' page
No privacy policy
Different backgrounds on each page
Poor content
Poor navigation
Over powering music set to auto play
Broken HTML code links and graphics
Poor browser compatibility
Large slow loading graphics
Too many graphics
Large Welcome banners
Flashing banners
Pages scrolling to oblivion
Multiple colored text
Multiple use of animated graphics
Text difficult to read
Animated bullets
No Meta tags
Too many graphic and/or line dividers
Multiple use of different fonts
Under construction signs
Busy, distracting backgrounds
Scrolling text in the status bar
Multiple banners and buttons
Large scrolling text across the page
Poor use of HTML code frames
Large fonts
Poor use of mouse over effect
When you begin designing your web site, try to keep your main HTML page as small as possible. For example,
instead of trying to cram all your information into a single web page, consider creating sections for your content.
These sections can contain highlights of your content with a link to further information. You can set up your
content sections in HTML tables with colored heading sections for information, such as articles, products or
whatever you'd like.
To keep your main HTML page smaller, it is much better to keep it down to the most essential elements. You can
then use links to additional pages to provide the detailed information. A good rule of thumb is Less is More.
To enhance your web page, you can format your text using bold headlines, colored HTML table cells, and
graphic bullets and/or arrows.
If you use the same graphic bullets and arrows throughout your page, you can enhance your page's
appearance, but you won't add any additional time to your web page load time. When you reuse an
image, your image only has to load once. When the image has loaded, it will instantly be displayed in all
of the other locations.
If you're looking for some HTML codes and tips to spice up your web site, you've come to the right place.
You will find a variety of HTML codes and tips below. Simply click on the links and copy and paste the
codes into your web page according to the instructions.
Changing Table Background Colors on Mouseover Replacing Your Standard Bullets With Graphic Bullets
Embedding Web Pages within Web Pages Creating a Placeholder for an Empty Table Cell
Protect Your Email Address From Spam Robots Linking To a Specific Location on a Page
Creating an HTML Vertical Rule - Line Divider Auto Fill Email Subject
Using Style Tags For Mouse Over Link Effects Preventing Search Engine Indexing