Neil Macmillan and Associates Logo

Neil Macmillan & Associates

HTML Refinements

Pencil
Linked Images
Bullet Styles
E-mail Link
Comment
Font Size
Extended Characters
Tables

The Webmaster's Bookstore AMAZON.COM

Using Images as Links

Combine <IMG SRC = " "> and <A HREF = " "> elements

Malaspina University-College LogoMalaspina University-College Logo

<A HREF = "http://www.mala.bc.ca"><IMG SRC="graphics/mallogo.gif" ALT="Malaspina University-College Logo" WIDTH=264 HEIGHT=123></A>
<A HREF = "http://www.mala.bc.ca"><IMG SRC="graphics/mallogo.gif" ALT="Malaspina University-College Logo" WIDTH=264 HEIGHT=123 BORDER=0></A>(For Right Hand Side Version)

Different Bullet Styles

(NOTE: Not every browser can display every bullet style)

A list with default bullets <UL>A list with discs <UL TYPE= DISC>
  • First item
  • Second item
  • Third item
  • First item
  • Second item
  • Third item
A list with circles <UL TYPE= CIRCLE>A list with squares <UL TYPE= SQUARE>
  • First item
  • Second item
  • Third item
  • First item
  • Second item
  • Third item

Or we can use a use a small graphic

Pencil First item
Pencil Second item
Pencil Third item
The above is structured as a Definition List, but without a <DT> line with HTML markup as follows:

<DL>
<DD> <IMG ALIGN=BOTTOM SRC="graphics/pencil.gif" > First item
<DD> <IMG ALIGN=BOTTOM SRC="graphics/pencil.gif" > Second item
<DD> <IMG ALIGN=BOTTOM SRC="graphics/pencil.gif" > Third item
</DL>

E-mail Link

<A HREF = "mailto:neil@nmacmillan.com">neil@nmacmillan.com</A>

The above line will produce the following effect: neil@nmacmillan.com

Clicking on the link launches an e-mail program with the correct e-mail address entered in the 'To' field.

Comment Line

<!---Disables a line or section of text or HTML Code--->

Use this to test alternative ideas on your page without destroying a previous version

Controlling Font Size

Use <FONT SIZE = "#"> </FONT>, where # is from 1 to 7

This is size 1 text
This is size 2 text
This is size 3 text -------------------- The normal, default size
This is size 4 text
This is size 5 text
This is size 6 text
This is size 7 text

Instead of using Numbers 1 through 7 consider using text sizes greater than or smaller than default. In this method, one size larger than default is <FONT SIZE = "+1">, while one size smaller than default is <FONT SIZE = "-1">

Two sizes larger than default is <FONT SIZE = "+2">,
while two sizes smaller than default is <FONT SIZE = "-2"> (which might not be readable at this size).

Extended Characters, Special Characters

Numerical Code Method

Each character has a numerical code preceded with &# and terminated with ;
For example, e acute is &#233; and is rendered as é
The copyright symbol is &#169; and is rendered as ©

Entity Name Method

The character or entity name is prefixed by & and terminated by ;
For example, e acute is &eacute; and is rendered as é
The copyright symbol is &copy; and is rendered as ©

Tables

Declare your intention to create a table by writing:
<TABLE BORDER CELLPADDING=2>

The default value of BORDER is 1 and specifies the thickness of the table border and lines separating rows and cells. A borderless table can be made by setting BORDER=0 or leaving out the BORDER attribute altogether
(The bulleted list examples above are in a borderless table).
Cellpadding defines space between cell data and the edges of the cell.

The tag </TABLE> defines the end of a table.

The body of the table contains rows and cells within the rows.

To start a Table Row: < TR ALIGN=CENTER > (ALIGN can also = LEFT or RIGHT). VALIGN specifies vertical positioning within cells and can be TOP, MIDDLE or BOTTOM

Alignment commands can be in the <TR> tag if they are to apply to the entire row. Individual data cells can be given alignment attributes which apply to only that cell.

To create a Table Data Cell: <TD> Data Cell Content </TD>
To end a Table Row: </TR>

An example of a simple 3-row table with three data cells on each row:

Cell 1Cell 2 Cell 3
Cell 4 Cell 5 Cell 6
Cell 7 Cell 8 Cell 9

HTML Markup for this Table

<TABLE BORDER=1 CELLPADDING=2>
<TR ALIGN=CENTER><TD>Cell 1</TD><TD>Cell 2 </TD><TD>Cell 3 </TD></TR>
<TR ALIGN=CENTER><TD>Cell 4 </TD><TD>Cell 5 </TD><TD>Cell 6 </TD></TR>
<TR ALIGN=CENTER><TD>Cell 7 </TD><TD>Cell 8 </TD><TD>Cell 9 </TD></TR>
</TABLE>

The same table with some cells spanning rows and columns, cellpadding and cellspacing each set to 4 and background colors assigned to two cells. Older browsers will not display the background colors:

Cell 1Cell 2
Cell 3 Cell 4 Cell 5
Cell 6 Cell 7

HTML Markup for this Table

<TABLE BORDER CELLPADDING=4 CELLSPACING=4>
<TR ALIGN=CENTER>
<TD COLSPAN=2 BGCOLOR="#FFCCCC">Cell 1</TD>
<TD>Cell 2 </TD>
</TR>
<TR ALIGN=CENTER>
<TD>Cell 3 </TD>
<TD>Cell 4 </TD>
<TD ROWSPAN=2 BGCOLOR="#CCFFFF">Cell 5 </TD>
</TR>
<TR ALIGN=CENTER>
<TD>Cell 6 </TD>
<TD>Cell 7 </TD>
</TR>
</TABLE>

Visit the Webmaster's Bookstore

web site designer consulting and training services  Neil Macmillan & Associates web site designer
HOME PAGE || SITE MAP || CONTACT US
Internet marketing consultantsWeb Site Design  Internet marketing consultantsWWW Marketing  Internet marketing consultantsInternet Training
1129 Selkirk Drive Nanaimo, BC, Canada V9R 5X4
webmaster@nmacmillan.com
250.753.7293
Home Page Consulting Services Table of Contents International Portfolio Bookmark Newsletter Awards, Associates, etc. Free Inquiry Form Internet Marketing Resource Room Developing an Internet Web Site Features of an Internet Marketing Web Site HTML Help Centre Transparent GIFs Tutorial Cascading Style Sheets Tutorial Image Alignment Tutorial Web Page Refinements The Webmasters Bookstore Weave a Web Page Outline HTML Enhancements Class Outline Search Tools List

http://www.nmacmillan.com/refine.htm
Updated: Oct 20 2001