Professional Documents
Culture Documents
Vol6 Charts
Vol6 Charts
WebDesignMastery.com Page 1
Web Design Mastery
Disclaimer
Although every attempt has been made to verify the accuracy of the information
contained within this book, it provides the opinion of the author and is intended for
informational purposes only.
The author and publisher disclaim any responsibility for errors, omissions,
interpretations or use and application of the information herein. In no event shall
the author or publisher be held liable for any loss, risk, damage, use or misuse of
any of the information either directly or indirectly presented herein.
If professional advice or assistance is required, you are advised to seek the services
of a competent professional.
WebDesignMastery.com Page 2
Web Design Mastery
The following charts were designed to assist you in locating the codes that you need in
a quick and easy fashion. You are encouraged to copy and paste these codes into your
HTML and edit as needed.
It is highly recommended that you complete the HTML Tutorial prior to using these
charts.
Section 1: HTML Chart - Commonly used HTML codes, including names, tags and
examples.
Section 3: Color Chart - 216 Safe color chart containing each color, the hexadecimal
values and the RGB (Red, Green, Blue) Values.
Section 4: Symbols Chart - Special characters and symbols that can be used within
your HTML.
Note: To copy the codes, you must first click on the text select tool within the
Acrobat toolbar. Next, place your mouse pointer over the beginning of the text you
would like to copy. Click and hold your left mouse button and drag your mouse
over all the code you would like to copy. Your code should now be highlighted. Go to
"Edit" - "Copy" then place your cursor within your HTML code where you would like to
place the code. Go to "Edit" - "Paste". Your code will be displayed.
WebDesignMastery.com Page 3
Web Design Mastery
Table of Contents
HTML TAG CHART ........................................................................................................ 6
<!-- ............................................................................................................................... 6
<A - .............................................................................................................................. 6
<B> .............................................................................................................................. 6
<BIG>........................................................................................................................... 6
<BODY>....................................................................................................................... 6
<BR>............................................................................................................................ 6
<CENTER> .................................................................................................................. 6
<DD>............................................................................................................................ 6
<DL> ............................................................................................................................ 6
<DT> ............................................................................................................................ 6
<EM>............................................................................................................................ 6
<EMBED> .................................................................................................................... 6
<FONT> ....................................................................................................................... 7
<FORM> ...................................................................................................................... 7
<H1> ............................................................................................................................ 7
<H2> ............................................................................................................................ 7
<H3> ............................................................................................................................ 7
<H4> ............................................................................................................................ 7
<H5> ............................................................................................................................ 7
<H6> ............................................................................................................................ 7
<HEAD>....................................................................................................................... 7
<HR>............................................................................................................................ 7
<HTML> ....................................................................................................................... 8
<I> ................................................................................................................................ 8
<IMG> .......................................................................................................................... 8
<INPUT> ...................................................................................................................... 8
<LI>............................................................................................................................ 10
<LINK>....................................................................................................................... 10
<MARQUEE>............................................................................................................. 10
<MENU> .................................................................................................................... 10
<META>..................................................................................................................... 10
<OL> .......................................................................................................................... 11
<OPTION> ................................................................................................................. 11
<P>............................................................................................................................. 12
<SMALL>................................................................................................................... 12
<STRONG>................................................................................................................ 12
<TABLE> ................................................................................................................... 12
<TD> .......................................................................................................................... 13
<TH> .......................................................................................................................... 13
<TITLE> ..................................................................................................................... 13
<TR> .......................................................................................................................... 14
WebDesignMastery.com Page 4
Web Design Mastery
<TT>........................................................................................................................... 14
<U> ............................................................................................................................ 14
<UL> .......................................................................................................................... 14
CSS CHART ................................................................................................................. 15
BACKGROUND PROPERTIES .......................................................................................... 15
BORDER PROPERTIES ................................................................................................... 16
CLASSIFICATION PROPERTIES ....................................................................................... 17
FONT PROPERTIES ....................................................................................................... 18
MARGIN PROPERTIES.................................................................................................... 19
PADDING PROPERTIES .................................................................................................. 20
TEXT PROPERTIES ........................................................................................................ 21
216 WEB SAFE COLOR CHART ................................................................................. 22
TROUBLESHOOTING.................................................................................................. 31
GRAPHICS.................................................................................................................... 31
TEXT ........................................................................................................................... 34
TABLES ....................................................................................................................... 36
HTML ......................................................................................................................... 42
FORMS ........................................................................................................................ 43
JAVASCRIPT ................................................................................................................ 46
CGI SCRIPTS ............................................................................................................... 47
WebDesignMastery.com Page 5
Web Design Mastery
WebDesignMastery.com Page 6
Web Design Mastery
<FONT
<FONT> font
FACE="Arial">Example</FONT>
Example
<FONT FACE="Arial"
<FONT> font
SIZE="4">Example</FONT> Example
<FONT FACE="Arial" SIZE="+3"
<FONT> font COLOR="#FF0000">
Example</FONT>
Example
<FORM
action="mailto:you@domain.com">
Name: <INPUT name="Name" value=""
size="10"><BR>
Email: <INPUT name="Email" value=""
form
<FORM> size="10"><BR>
<CENTER><INPUT type="submit"
value=”Submit”>
</CENTER>
</FORM>
WebDesignMastery.com Page 7
Web Design Mastery
WebDesignMastery.com Page 8
Web Design Mastery
WebDesignMastery.com Page 9
Web Design Mastery
WebDesignMastery.com Page 10
Web Design Mastery
WebDesignMastery.com Page 11
Web Design Mastery
<TABLE BORDER="4"
CELLPADDING="2" Example 1:
CELLSPACING="2" WIDTH="100%">
<TR> Column 1 Column 2
table
<TABLE> <TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>
<TABLE BORDER="2"
BORDERCOLOR="#336699"
CELLPADDING="2" Example 2:
<TABLE> CELLSPACING="2" WIDTH="100%">
(Internet table <TR> Column 1 Column 2
Explorer) <TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>
WebDesignMastery.com Page 12
Web Design Mastery
Example 3:
<TABLE CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TD BGCOLOR="#CCCCCC"> Example 3:
Column 1</TD>
<TABLE> table Column 1 Column 2
<TD BGCOLOR="#CCCCCC">
Column 2</TD> Row 2 Row 2
</TR>
<TR>
<TD>Row 2</TD>
<TD>Row 2</TD>
</TR>
</TABLE>
<TABLE BORDER="2"
CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
table data Column 1 Column 2
<TD> <TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>
<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> Column 1 Column 2 Column 3
</TR> Row 2 Row 2 Row 2
table
<TR>
<TH> header Row 3 Row 3 Row 3
<TD>Row 3</TD>
<TD>Row 3</TD> Row 4 Row 4 Row 4
<TD>Row 3</TD>
</TR>
<TR>
<TD>Row 4</TD>
<TD>Row 4</TD>
<TD>Row 4</TD>
</TR>
</TABLE>
</DIV>
document Title of your webpage will be
<TITLE>Title of your webpage</TITLE>
<TITLE> title viewable in the title bar.
WebDesignMastery.com Page 13
Web Design Mastery
WebDesignMastery.com Page 14
Web Design Mastery
CSS Chart
Background Properties
Property Description Values Sample Code
background-
attachment
background-
color BODY {background: blue}
Specifies individual background- P {background:
background
background properties image url(image.jpg) gray 75%
background- no-repeat fixed}
position
background-
repeat
background- Specifies background image at fixed BODY {background-
attachment fixed or scroll scroll attachment: fixed}
transparent
background- name BODY {background-color:
Specifies background color
color rgb blue}
hex
background- url BODY {background-image:
Specifies background image
image none url(image.jpg)}
top
top left
top center
top right
center
background- center left BODY {background-
Specifies background position
position center center position: center}
center right
bottom
bottom left
bottom center
bottom right
repeat
background- Specifies background repeat-x BODY {background-repeat:
repeat repeating repeat-y no-repeat}
no-repeat
WebDesignMastery.com Page 15
Web Design Mastery
Border Properties
Property Description Values Sample Code
border-width
Specifies the properties for all
border border-style P {border: solid blue}
four borders of an element
color
thin
border-bottom- Specifies the width of the medium P {border-bottom-width:
width bottom border of an element thick solid thin red}
length
thin
border-left- Specifies the width of the left medium P {border-left-width: solid
width border of an element thick thin red}
length
thin
border-right- Specifies the width of the right medium P {border-right-width: solid
width border of an element thick thick red}
length
thin
border-top- Specifies the width of the top medium P {border-top-width: solid
width border of an element thick thick red}
length
thin
Specifies the width for all four
medium H1 {border-width: thick
border-width borders of an element from
thick thin thin medium}
one to four values
length
WebDesignMastery.com Page 16
Web Design Mastery
Classification Properties
Property Description Values Sample Code
block
Specifies how/if an element is inline
display P {display: block}
displayed list-item
none
list-style-type
Specifies all of the list list-style-image
list-style UL {list-style: circle inside}
properties list-style-
position
Specifies an image as the list url UL {list-style-image:
list-style-image
item marker none url(image.gif)}
list-style- Specifies the position of the inside
UL {list-style: outside}
position list marker outside
disc
circle
square
decimal
Specifies the appearance of
list-style-type lower-roman OL {list-style-type: circle}
the list item marker
upper-roman
lower-alpha
upper-alpha
none
WebDesignMastery.com Page 17
Web Design Mastery
Font Properties
Property Description Values Sample Code
font-family
P {font: 12pt arial}
font-size
Specifies multiple font P {font: 70% sans-serif}
font font-weight
properties P {font: bold italic large
font-style
Verdana}
font-variant
family-name P {font-family:
font-family Prioritized font names
generic-family verdana,arial}
smaller
larger
xx-small
x-small
P {font-size: 10pt; font-
font-size Specifies the size of the text small
family: arial}
medium
large
x-large
xx-large
normal
bold
bolder
lighter
100
200
Specifies the weight of the
font-weight 300 {font-weight: bold}
text
400
500
600
700
800
900
normal
font-style Specifies the style of the text italic {font-style: italic}
oblique
normal H2 {font-variant: small-
font-variant Specifies the font variant
small caps caps}
WebDesignMastery.com Page 18
Web Design Mastery
Margin Properties
Property Description Values Sample Code
length
margin-bottom Specifies bottom margin percentage H1 {margin-bottom: 2em}
auto
length
margin-left Specifies left margin percentage H1 {margin-left: 2px}
auto
length
margin-right Specifies right margin percentage H1 {margin-right: 10.5%}
auto
length
margin-top Specifies top margin percentage H1 {margin-top: 2em}
auto
WebDesignMastery.com Page 19
Web Design Mastery
Padding Properties
Property Description Values Sample Code
padding-top
Specifies all of the padding padding-
padding properties of an element from bottom P {padding: 2em 2em}
one to four values padding-right
padding-left
padding- Specifies the bottom padding length P {padding-bottom: 2em
bottom properties of an element percentage 2em}
Specifies the left padding length
padding-left P {padding-left: 12px}
properties of an element percentage
Specifies the right padding length
padding-right P {padding-right: 10%}
properties of an element percentage
Specifies the top padding length
padding-top P {padding-top: 2em}
properties of an element percentage
WebDesignMastery.com Page 20
Web Design Mastery
Text Properties
Property Description Values Sample Code
name
color Text color {color: red}
RGB
normal
letter-spacing Spacing between characters {letter-spacing: 0}
length
normal
number
line-height Spacing between lines DIV {line-height:125%}
length
percentage
left
right
text-align Specifies justification {text-align: right}
center
justify
none
underline
text-decoration Text Style overline {text-decoration: none}
line-through
blink
Indents text from the left length
text-indent P {text-indent: 3em}
margin percentage
capitalize
uppercase H1 {text-transform:
text-transform Transforms text letters
lowercase uppercase}
none
WebDesignMastery.com Page 21
Web Design Mastery
Each color below contains the hexadecimal values and the RGB (Red, Green, Blue) Values.
Select a color and copy & paste the hexadecimal value into your HTML document.
Example:
Hexadecimal Value - #FFFFFF RGB Color Code - R=255 G=255 B=255
WebDesignMastery.com Page 22
Web Design Mastery
WebDesignMastery.com Page 23
Web Design Mastery
WebDesignMastery.com Page 24
Web Design Mastery
WebDesignMastery.com Page 25
Web Design Mastery
WebDesignMastery.com Page 26
Web Design Mastery
WebDesignMastery.com Page 27
Web Design Mastery
In order to display certain characters within your HTML pages, you must use a special code.
The codes below display the HTML code and the character when displayed on your web page.
HTML Browser HTML Browser HTML Browser HTML Browser HTML Browser
Code View Code View Code View Code View Code View
WebDesignMastery.com Page 28
Web Design Mastery
HTML Browser HTML Browser HTML Browser HTML Browser HTML Browser
Code View Code View Code View Code View Code View
Ö Ö ; ; y y · · õ õ
Ø Ø < < z z ¸ ¸ ö ö
Ù Ù = = { { ¹ ¹ ÷ ÷
Ú Ú > > | | º º ø ø
Û Û ? ? } } » » ù ù
Ü Ü @ @ ~ ~ ¼ ¼ ú ú
Ý Ý A A  ? ½ ½ û û
Þ Þ B B € € ¾ ¾ ü ü
ß ß C C  ¿ ¿ ý ý
à à D D ‚ ‚ À À þ þ
á á E E ƒ ƒ Á Á ÿ ÿ
å å F F „ „ Â Â
æ æ G G … … Ã Ã
ç ç H H † † Ä Ä
è è I I ‡ ‡ Å Å
é é J J ˆ ˆ Æ Æ
ê ê K K ‰ ‰ Ç Ç
ë ë L L Š Š È È
ì ì M M ‹ ‹ É É
í í N N Œ Œ Ê ?
î î O O  Ë Ë
ï ï P P Ž Ž Ì Ì
ð ð Q Q  Í Í
ñ ñ R R  Î Î
ò ò S S ‘ ‘ Ï Ï
ó ó T T ’ ’ Ð Ð
ô ô U U “ “ Ñ Ñ
õ õ V V ” ” Ò Ò
ö ö W W • • Ó Ó
ø ø X X – – Ô Ô
ù ù Y Y — — Õ Õ
WebDesignMastery.com Page 29
Web Design Mastery
HTML Browser HTML Browser HTML Browser HTML Browser HTML Browser
Code View Code View Code View Code View Code View
ú ú Z Z ˜ ˜ Ö Ö
û û [ [ ™ ™ × ×
ý ý \ \ š š Ø Ø
þ þ ] ] › › Ù Ù
ÿ ÿ ^ ^ œ œ Ú Ú
Copyright © Brajusta Publishing. All rights reserved.
WebDesignMastery.com Page 30
Web Design Mastery
Troubleshooting
Graphics
Problem Potential Solution
Can you tell me how I can The address of an image is simply your image's URL.
determine what my image address For example, if you uploaded your image into a
is? directory called "images" and the name of your image
is logo.gif, then your image address might look
something like this:
http://www.domain.com/images/logo.gif
I can't get my image to display on In order for an image to display on a web page, it
my web page. must first be uploaded to your server. If you've
verified that your image has been uploaded, your next
step will be to double check your image HTML code.
Make sure that the image address leads to your image
and is spelled exactly the same. Keep in mind, the
name of your image is CaSE SeNsiTIve. In other
words, if your image name looks like this "Image.gif"
on your server, then it must look exactly the same
within your code.
My linked image contains an ugly To remove a link border, place border=0 within your
border around it. Is there any way image code.
I can remove it?
Browser View
Browser View
New Code
Original Code
WebDesignMastery.com Page 31
Web Design Mastery
WebDesignMastery.com Page 32
Web Design Mastery
Is it possible to resize my images If you'd like to resize an image in the JPEG format,
without having to use a graphics you can do so within your HTML by changing the
editor? HEIGHT and WIDTH values. To retain your images
original characteristics, make sure you adjust the
height and the width equally. In other words, if your
original image dimensions are 50x100 (width 50 and
height 100), to reduce your image to one half the
size, change the width to 25 and the height to 50.
Original Resized
Image Image
96x134 76x114
I would like to learn how to design Paint Shop Pro is a highly professional graphics editing
my own graphics, but don't want program used by many Internet marketers. Not only
to pay hundreds of dollars for a will it enable you to create highly professional looking
software program. Are there any graphics, but it is also very reasonably priced.
quality graphics editing programs http://www.jasc.com
that don't cost a fortune?
Although I would like to design my GotLogos will design a highly professional looking logo
own graphics, I just can't seem to and many other web graphics at a very reasonable
get the hang of it. Is there a price. Logos start at just $25.
professional service that will design http://www.gotlogos.com
a logo for me at a reasonable
price?
WebDesignMastery.com Page 33
Web Design Mastery
Text
Problem Potential Solution
I would like to display my text side In order to display your text like a newspaper, you
by side like a newspaper, but I must place it within a table.
can't figure out the code.
This is an example This is an example
displaying text side by displaying text side by
side like a newspaper. side like a newspaper.
<TABLE
<TR>
<TD>text</TD>
<TD>text</TD>
</TR>
</TABLE>
I am aware that SPAM robots crawl You can protect your email by using special coding.
the Internet in search of email Instead of displaying the @ symbol within your email,
addresses. Is there any way I can use the following code:
display my email address on my
web page, yet protect it from these
spammers? <A HREF="mailto:you@yourdomain.com">
Contact Us</A>
Is it possible to indent a paragraph You can indent a paragraph from the left side of your
from just the left side of the page? page by enclosing it between the <UL> and </UL>
tags:
<UL>
Place your text between the <UL> and </UL tags
without the <LI> tags.
</UL>
Is it possible to highlight text You can highlight your text in any color you'd like by
within a web page? adding the following codes to your HTML:
<SPAN style="BACKGROUND-COLOR:
#ffff00">Example of highlighted text</SPAN>
WebDesignMastery.com Page 34
Web Design Mastery
I know how to set my text up in In order to display your columns a specific size, your
tables, but can you tell me how to first step will be to add width=90% (or whatever
set my columns at a specific width? percentage you'd like) to your table tag. Next, add
width="25%" within your first TD tag and
width="75%" within your second TD tag. You can
change the percentages to whatever you'd like, as
long as they total 100%.
Example 25%+75%=100%
When I placed my text within my Yes. Simply place your text within a table. You can
page, it's right up against the left specify the width of your table to determine the
border. Is there any way I can distance between your text and the left and right
correct this? border of your web page.
WebDesignMastery.com Page 35
Web Design Mastery
Tables
Problem Potential Solution
I have diced my image into smaller When using a table to piece an image together, you
sections so that I could piece it must include border="0", cellpadding="0", and
back together with a table, but cellspacing="0" within your table code.
there is a space between the table
cells that I can't get rid of.
Browser View
Browser View
New Code
Original Code
WebDesignMastery.com Page 36
Web Design Mastery
I'm trying to display a chart I When using a table with borders and empty cells,
created with a table, but the place within your empty cells.
borders of the empty table cells
aren't showing.
Browser View
Browser View
New Code
Original Code
<TABLE>
<TR>
<TABLE> <TD>Example</TD>
<TR> <TD> </TD>
<TD>Example</TD> <TD> </TD>
<TD></TD> <TD>Example</TD>
<TD></TD> </TR>
<TD>Example</TD> <TR>
</TR> <TD> </TD>
<TR> <TD>Example</TD>
<TD></TD> <TD>Example</TD>
<TD>Example</TD> <TD> </TD>
<TD>Example</TD> </TR>
<TD></TD> </TABLE>
</TR>
</TABLE>
WebDesignMastery.com Page 37
Web Design Mastery
When placing text within my table To align your text across all of your top table cells,
sells, I am unable to get the text add Valign="top" to your TR tag. This will top align
to align properly. I'd like to display every column within the top row of your table.
the text at the top of both cells.
Browser View
Browser View
WebDesignMastery.com Page 38
Web Design Mastery
I have specified a font face at the In order to display a specific font face within your
beginning of my web page, but the tables, you must use a separate font tag within each
font face isn't displaying within my
table cell.
tables.
Code
<TABLE>
<TR>
<TD><font face="Arial">text</font></TD>
<TD><font face="Arial">text</font></TD>
</TR>
</TABLE>
Code
<STYLE TYPE="text/css">
<!--
TD{font-family: Arial; font-size: 12pt;}
-->
</STYLE>
WebDesignMastery.com Page 39
Web Design Mastery
I would like to display my If you don't want empty space within your table when
subscription form within a table, it contains a form, you must place your beginning and
but can't get ride of the extra ending form codes outside the table code.
spaces inside my table.
New Table (Browser View)
Original Table (Browser View)
WebDesignMastery.com Page 40
Web Design Mastery
I've set up my web page Yes. Instead of placing your entire web page within
completely within a table, but now one table, try placing your web page contents in
it seems to load very slowly. Is separate tables and stack them on top of each other.
there anything I can do to speed This will enable each table section of your page to
up the load time? load individually and make your page appear to load
more quickly. You can see an example of stacking
tables within the Advanced Web Design ebook.
WebDesignMastery.com Page 41
Web Design Mastery
HTML
Problem Potential Solution
Although I've learned basic HTML, Coffee Cup is a good HTML editor that is great for
writing it myself is very time beginners and experienced webmasters alike.
consuming. Are there any good http://www.coffeecup.com
HTML editors I can use that are
relatively inexpensive?
I've created my first web page and The main page of your website must be called
uploaded it to my server. I tried to index.htm or index.html as this is the standard file
load my page by typing in my your server will look for when someone visits your
domain name within my browser, website. For example, if your web address is
but I receive an error message. http://www.mypage.com when typed into a browser,
this address will load your index.htm file.
Is it possible to open a link in a Yes. Place target="_blank" within your link code.
new window? Code
I would like to display some HTML Certain characters such as <> have special meanings
code on my page for my visitors to in HTML. For this reason, you'll need to use some
use, but I can't get the code to special coding. To display <, you'll need to use <
display. within your HTML code. Below, are a few of the most
often used symbols and codes.
Original Code
New Code
<img src="image.gif">
<img src="image.gif">
< <
> >
& &
© ©
® ®
WebDesignMastery.com Page 42
Web Design Mastery
Forms
Problem Potential Solution
I've placed the form code within In order for a form to function, in addition to placing
my web page, but my form isn't the form HTML within your web page, you must also
working. use a CGI form processing script. This script will
reside on your server within your CGI-bin and will be
called from your form code within your HTML. Your
code might look something like this:
Code
WebDesignMastery.com Page 43
Web Design Mastery
I don't have access to my CGI-bin. If you'd like to create a simple form that will email the
Is it possible to create a form that contents of your form to a specified email address,
doesn't need CGI? you can do so without CGI.
Name:
Comments:
<form action="mailto:you@yourdomain.com"
method="POST" name="emailform">
Name:<br>
<input type="text" size=25 name="name"><br>
<br>
Comments:<br>
<textarea name="comments" rows=6 cols=20>
</textarea><br>
<br>
<input type="submit" value="Submit"><input
type="reset" value="Reset">
</form>
WebDesignMastery.com Page 44
Web Design Mastery
Can you tell me how to display Place value="text" within your input tag code.
default text within my form's input
box?
Code
I tried to place the value="" code Instead of using the value="" code, place your default
within the textarea of my form, but text between the opening and closing textarea tags.
it wouldn't display my default text
Code
WebDesignMastery.com Page 45
Web Design Mastery
JavaScript
Problem Potential Solution
I've placed some JavaScript coding Most of the time when you receive an error
within my page, but I keep message with JavaScript, it's caused by an
receiving an error message. extra space at the end of a line of code. This can be
corrected simply by removing the extra space.
WebDesignMastery.com Page 46
Web Design Mastery
CGI Scripts
Problem Potential Solution
I've placed a CGI script on my When uploading a script to your server, you
server, but I keep receiving an really need to use an FTP (File Transfer
error message. protocol) program. (Refer to the Web Design Mastery
ebook for an FTP tutorial.) No matter what FTP
program you use, make absolutely certain that you
are uploading your script in ASCII mode and not
BINARY mode.
#!/usr/bin/perl
/usr/www/username/httpd/htdocs/directory
WebDesignMastery.com Page 47
Web Design Mastery
WebDesignMastery.com Page 48