Washington, D.C. Registry--Home Page Creator
DC Registry
banner
DC Auction|DC Chat|DC Power Brokers|DC Banner Network|Add Your Site|Free Home Pages|Guest Book|About Us
Search
for:

 
Search
Tips
Hagen Hosting

DC Events Calendar
October 2008
S M T W T F S
i i i 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Post an Event

Today's Events

AFRICAN DANCE CLASSES
Homework help and Test Preps
DC Belly Dance Classes
DC Area Belly Dance Classes
Jacob Lawrence Migration Serie
Have a Brown Bag Party!
Argentine Tango Beginner Class
Argentine Tango Intermediate
PLANNING FOR THE RETIREMENT YO

Premium quality web hosting!

Premium quality web hosting!


DC Web Directory
Arts & Entertainment (681)
Autos (51)
Business (535)
Community (110)
Computing (1058)
DC Guides (76)
Dining (158)
Education (169)
Employment (92)
Event Guides (55)
Federal Government (105)
Health (152)
Legal (183)
Living (98)
Local Government (57)
Lodging (118)
Museums (34)
News & Media (169)
People (952)
Real Estate (169)
Recreation (302)
Religion (210)
Shopping (410)
Sports (83)
Tourism (114)
Transportation (183)
Travel (86)

Steal this button
Steal this button--Get Rewarded!
& get rewarded!

Premium quality web hosting!

Premium quality web hosting!

Washington, D.C. Registry Home Page Creator Basic HTML Primer and Goodies with Code Samples

This page includes a basic HTML primer as well as examples and sample code for several types of features that you can include on your home pages created using the Home Page Creator. To put any of these items on your page, copy the sample code below and then paste it into one of the text boxes when creating or modifying your home page.

 
Basic HTML Formatting

What is it?

These are a few basic HTML formatting techniques that you can use to spice up your page. They include headers, line breaks, paragraph breaks, bold, italics, font sizes, font colors, and font types. Examples and the HTML code that you need to place on your page follow below.

Examples

Small header

Medium header

Large header

This is a line break.
And this is the next line.

This is a paragraph break.

And this is the next paragraph.

Bold text

Italicized text

Underlined text

Small font
Large font
Red font
Blue font
Arial font
Verdana font
Courier font
Comic Sans MS font
Impact font
Anglican font
Times Roman font

Link to D.C. Registry
E-mail link to "you@yourdomain.com"

Bullet List

  • First Item
  • Second Item
  • Third Item

Sample Code
<h6>Small header</h6>

<h3>Medium header</h3>

<h1>Large header</h1>

This is a line break.<br>
This is a paragraph break.<p>

<b>Bold text</b>

<i>Italicized text</i>

<u>Underlined text</u>

<font size=1>Small font</font>
<font size=7>Large font</font>
<font color="red">Red font</font>
<font color="blue">Blue font</font>
<font face=arial>Arial font</font>
<font face="verdana">Verdana font</font>
<font face="courier">Courier font</font>
<font face="comic sans MS">Comic Sans MS font</font>
<font face="Impact">Impact font</font>
<font face="Anglican">Anglican font</font>
<font face="Times Roman">Times Roman font</font>

<a href="http://dcregistry.com">Link to D.C. Registry</a>
<a href="mailto:you@yourdomain.com">E-mail link to "you@yourdomain.com"</a>

Bullet List <ul><li>First Item <li>Second Item <li>Third Item </ul>

Environment Variables

What is it?

Environment variables are nifty little addons that allow your page to display certain information to your visitors, such as the time and date, the visitor's IP address, the visitor's browser, and the page where the visitor came from. Environment variables take advantage of something called Server Side Includes (SSI) to do their magic. As a result, they will work on your home pages here at the D.C. Registry that were created using our "Classic" Home Page Creator, but they may not work elsewhere. Nor will they work on your pages created using Version 2.0 of our Home Page Creator. Examples and the HTML code that you need to place on your page follow below.

Examples

Current date and time: Monday, 06-Oct-2008 09:50:07 EDT
Your IP address: 38.103.63.60
Your web browser: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
The page that you just came from: (none)

Sample Code

For current date and time: <!--#echo var="DATE_LOCAL"-->
Your IP address: <!--#echo var="REMOTE_ADDR"-->
Your web browser: <!--#echo var="HTTP_USER_AGENT"-->
The page that you just came from: <!--#echo var="HTTP_REFERER"-->
Tables

What is it?

Tables are a nice way to display certain types of information in an appealing and organized fashion. Table design can be very complex, and can even include tables within tables within tables. Be careful with this code, as simple mistakes (such as forgetting the closing </td> or </table> tags can cause not only your table to disappear, but also your entire page. Some simple table examples and the HTML code that you need to place on your page follow below.

Examples

One Cell Table

Table Header
First Cell Second Cell

Borderless Table Spanning Width of Page
First Cell Second Cell
Third Cell Fourth Cell
Fifth Cell (centered and taking up 2 columns)

Complicated Table
Background Color First Cell Second Cell
The text in this cell has been specified to be centered and to begin at the top of the cell

Sample Code
For the first table:

<table border=4><tr><td>One Cell Table</td></tr></table>
For the second table:
<table border=2<tr><th colspan=2>Table Header</th></tr> <tr><td>First Cell</td><td>Second Cell</td></tr></table>
For the third table:
<table border=0 width=100%><tr><th colspan=2>Borderless Table Spanning Width of Page</th></tr> <tr><td>First Cell</td><td>Second Cell</td></tr> <tr><td>Third Cell</td><td>Fourth Cell</td></tr> <tr><td colspan=2 align=center>Fifth Cell (centered and taking up 2 columns)</td></tr></table>
For the fourth table:
<table width=350 border=7 cellpadding=4 cellspacing=6><tr><th colspan=3>Complicated Table</th></tr> <tr><td rowspan=2 width=70 bgcolor="#ffffcc"><td>Background Color</td><td>First Cell</td><td>Second Cell</td></tr> <tr><td colspan=2 align=center valign=top>The text in this cell has been specified to be centered and to begin at the top of the cell</td></tr></table>

Forms

What is it?

Forms allow you to collect information from visitors to your web site and then process that information in some way, such as adding it to a database or e-mailing it to you. The Home Page Creator can't set up a database for you, but it can set up a nice little form that will collect information from your visitors and then e-mail it to you. An example and the HTML code that you need to include a form on your page follow below. You'll notice that this example also includes tables to make the layout nicer.

Example

Your Name:
Your E-Mail address:
Your postal address:
Your phone number:
Do you have any other comments or special requests?
Do you like my home page?
Yes
No
Add me to your mailing list:





Sample Code

<table border=2 cellpadding=4 cellspacing=6> <tr><td bgcolor="#ffffcc"><FORM ACTION="http://www.pair.com/cgi-bin/formmail.pl" METHOD="POST"> <INPUT type="hidden" NAME="recipient" VALUE="you@yourdomain.com"> <INPUT type="hidden" NAME="subject" VALUE="Feedback Form"> <INPUT type="hidden" NAME="sort" VALUE="order:address,phone,comments,like,add_to_mailing_list"> <table border=0 align=center cellpadding=4 cellspacing=4> <tr><td valign=top width=50%> <b>Your Name:</b><br> <INPUT NAME="realname" SIZE=20 VALUE=""></td> <td valign=top width=50%><b>Your E-Mail address:</b><br> <INPUT NAME="email" size=20 VALUE=""></td></tr> <tr><td valign=top width=50%><b>Your postal address:</b><br> <TEXTAREA NAME="address" cols=20 rows=3 wrap=physical VALUE=""></TEXTAREA></td> <td valign=top width=50%><b>Your phone number:</b><br> <INPUT NAME="phone" SIZE=20 VALUE=""></td></tr> <tr><td valign=top colspan=2><b>Do you have any other comments or special requests?</b><br> <TEXTAREA NAME="comments" cols=40 rows=5 wrap=physical value=""></TEXTAREA></td> </tr> <tr><td valign=top width=50%><b>Do you like my home page?</b><br> <input type=radio name="like" value="yes" CHECKED> Yes<br> <input type=radio name="parking" value="no"> No</td> <td valign=top width=50%><b>Add me to your mailing list:</b><br> <INPUT type="checkbox" NAME="add_to_mailing_list" CHECKED></td></tr></table> <p><center> <INPUT TYPE="submit" VALUE="Send in my info"> <INPUT TYPE="reset" VALUE="Start over"><BR></center> <p> </FORM> </td> </tr> </table>

Be sure to change "you@yourdomain.com" to your actual e-mail address. Also, if you add or remove any input fields, you need to also add or remove them from the "sort" input near the top of the code. Look for the section that currently reads "order:address,phone,comments,like,add_to_mailing_list". The items after "order:" correspond to the current input fields on the form. The "realname" and "email" variables do not have to be included in the sort order, since the form script handles them automatically.

Back to the Home Page Creator front page

Advertisement:

banner
Classifieds for every website!
Last modified: Wednesday, 26-Apr-2006 22:57:50 EDT
Copyright © 1995- Hagen Software. All rights reserved.
Usage subject to our access agreement and privacy statement.
Please send your questions, comments, or bug reports to the Webmaster.