logo

Home
About The Artist
Web Design
Web Design 2
HTML Reference
Graphics for the web
Contact Me

Sams Teach Yourself Web Publishing with HTML and XHTML in 21 Days
Sams Teach Yourself Web Publishing with HTML and XHTML in 21 Days

newspot_120x120.gif

HTML reference: Tags, Attributes, and Codes, and how they are used

The following information provides access to the most commonly used HTML. You can use it like the Web Design pages where you simply select, copy, and paste the codes into NotePad.

Page Structure|Text Formatting|Table Structure|Links with Anchor Tag|Adding images

Colors with their Hexadecimal value

The table below contains 216 colors that are considered browser-safe. The text in each cell represent its' hexadecimal value. To use this chart simply select all the text of the color you want, right click, copy, then paste this code between the quotation marks whenever a color value is required.

#ff0000 #ff0033 #ff0066 #ff0099 #ff00cc #ff00ff
#ff3300 #ff3333 #ff3366 #ff3399 #ff33cc #ff33ff
#ff6600 #ff6633 #ff6666 #ff6699 #ff66cc #ff66ff
#ff9900 #ff9933 #ff9966 #ff9999 #ff99cc #ff99ff
#ffcc00 #ffcc33 #ffcc66 #ffcc99 #ffcccc #ffccff
#ffff00 #ffff33 #ffff66 #ffff99 #ffffcc #ffffff
#cc0000 #cc0033 #cc0066 #cc0099 #cc00cc #cc00ff
#cc3300 #cc3333 #cc3366 #cc3399 #cc33cc #cc33ff
#cc6600 #cc6633 #cc6666 #cc6699 #cc66cc #cc66ff
#cc9900 #cc9933 #cc9966 #cc9999 #cc99cc #cc99ff
#cccc00 #cccc33 #cccc66 #cccc99 #cccccc #ccccff
#ccff00 #ccff33 #ccff66 #ccff99 #ccffcc #ccffff
#990000 #990033 #990066 #990099 #9900cc #9900ff
#993300 #993333 #993366 #993399 #9933cc #9933ff
#996600 #996633 #996666 #996699 #9966cc #9966ff
#999900 #999933 #999966 #999999 #9999cc #9999ff
#99cc00 #99cc33 #99cc66 #99cc99 #99cccc #99ccff
#99ff00 #99ff33 #99ff66 #99ff99 #99ffcc #99ffff
#660000 #660033 #660066 #660099 #6600cc #6600ff
#663300 #663333 #663366 #663399 #6633cc #6633ff
#666600 #666633 #666666 #666699 #6666cc #6666ff
#669900 #669933 #669966 #669999 #6699cc #6699ff
#66cc00 #66cc33 #66cc66 #66cc99 #66cccc #66ccff
#66ff00 #66ff33 #66ff66 #66ff99 #66ffcc #66ffff
#330000 #330033 #330066 #330099 #3300cc #3300ff
#333300 #333333 #333366 #333399 #3333cc #3333ff
#336600 #336633 #336666 #336699 #3366cc #3366ff
#339900 #339933 #339966 #339999 #3399cc #3399ff
#33cc00 #33cc33 #33cc66 #33cc99 #33cccc #33ccff
#33ff00 #33ff33 #33ff66 #33ff99 #33ffcc #33ffff
#000000 #000033 #000066 #000099 #0000cc #0000ff
#003300 #003333 #003366 #003399 #0033cc #0033ff
#006600 #006633 #006666 #006699 #0066cc #0066ff
#009900 #009933 #009966 #009999 #0099cc #0099ff
#00cc00 #00cc33 #00cc66 #00cc99 #00cccc #00ccff
#00ff00 #00ff33 #00ff66 #00ff99 #00ffcc #ffffff

This table contains the grayscale colors with hexadecimal codes, and is used same as above

#000000 #111111 #222222 #333333
#444444 #555555 #666666 #777777
#888888 #999999 #aaaaaa #bbbbbb
#cccccc #dddddd #eeeeee #ffffff

Colors by name: here are 16 standard colors and their names. If you use these values you will not need the (#) character. I recommend using the hexadecimal values, however these will work as well, and it did make a nice looking table.

black silver gray white maroon red purple fuchsia
green lime olive yellow navy blue teal aqua

HTML and Attributes

Listed here are some very useful HTML tags and attributes, with a brief description. Of course there is a lot more to learn, but you can construct a very nice Web site using these tags and a few eye-catching images. Remember an attribute must be placed in the opening tag, you may use more than one within a single tag, and the value must be between the "quotation marks " like the example below.

<body bgcolor="#ff0000" text="#000000">your page content</body>

Page Structure

Text Formatting|Table Structure|Links with Anchor Tag|Adding images|Colors

<html>...</html>

The HTML document is composed within this Tag

<head>...</head>

The head or introductory of the HTML document

<title>...</title>

Specifies the document title. It usually will appear in the upper window bar

<body>...</body>

Contains the content of the document that will be displayed in a browser window

bgcolor="..."

Sets the background color. Use the safe colors represented in hexadecimal code

Bckground="..."

The value here is a filename of an image that will fill the background area

text="..."

Normal text color is specified here, use a hexadecimal code for the value

link="..."

Unvisited links will have the color specified here with a hexadecimal code

alink="..."

Links on click will have the color specified here with a hexadecimal code

vlink="..."

Followed links will have the color specified here with a hexadecimal code

Text Formatting

Page Structure|Table Structure|Links with Anchor Tag|Adding images|Colors

<h1>...</h1>

Headings, six in all, h1 through h6 with h1 being the most prominent

<p>...</p>

Creates a paragraph (note: a browser ignores any linefeeds or carriage returns)

align="..."

Sets alignment; values = left, center, or right (use with heading or paragraph)

<br>

This tag is used to force a line break

<ul>...</ul>

Creates an unordered or bulleted list

<ol>...</ol>

Creates an ordered list. List items will be in numerical order

<li>...</li>

Defines a list item. Used within an unordered or ordered list

<i>...</i>

Text within tags will be italicized

<b>...</b>

Text within tags will be boldface

<basefont>

Sets the default text formatting with following attributes and values

size="..."

Specifies a font size from 1 to 7, with 1 being the smallest and 7 the largest

face="..."

Sets a font face by name like Arial, Helvetica, or Futura

color="..."

Specifies the font color; use a hexadecimal code for the value

<font>...</font>

Text within tags will change from the default settings using the above attributes and values

Table Structure

Page Structure|Text Formatting|Links with Anchor Tag|Adding images|Colors

<table>...</table>

Creates a table

width="..."

Table width can be specified in pixels or as a %

align="..."

Value options = left,center and right. Specifies table placement

border="..."

Specifies border width in pixels. "0" = no border

cellspacing="..."

Specifies spacing between the cells in pixels.

cellpadding="..."

Specifies spacing within the cell in pixels.

bgcolor="..."

Specifies the background color of the table use a hexadecimal

<tr>...</tr>

Table row defines a row containing cells

align="..."

Aligns content horizontally, values = left, center, or right

valign="..."

Aligns content vertically, values = top, middle, bottom, or baseline

<td>...</td>

Table data creates a cell to receive content

colspan="..."

Specifies the number of columns a cell will span

rowspan="..."

Specifies the number of rows a cell will span

Links with Anchor Tag

Page Structure|Text Formatting|Table Structure|Adding images|Colors

<a>...</a>

Defines a link. The text between the tags will display as an underlined link

href="..."

Hypertext reference or hyperlink value = the URL of the document to be linked to

name="..."

Sets an anchor location in a document to be linked to by name, value = a name

href="#..."

Hyperlink within a page to the anchor you set with the name attribute

href="...#..."

Hyperlink to an anchor in a different page, value = the URL#anchor name, this will load the page with the text between the anchor tags at the top of the screen

Adding images

Page Structure|Text Formatting|Table Structure|Links with Anchor Tag|Colors

<img src="..."alt="...">

Loads image in document. The src = the URL of the image. The alt = an alternative description that will display in a box if you place the mouse over the image, it will also display in browsers that do not support images

height="..."

Specifies image height in pixels

width="..."

Specifies image width in pixels

align="..."

Image alignment Value options = left, center and right



© 2000-2002 ilinkdesigns.com. All rights reserved.