Learn HTML 101

learning HTML

learn html

This page is dedicated to helping people learn HTML and write their own homepages for the world wide web. Through it you can access most of the tools and tricks you need to get going. Please note that this page is done on a volunteer basis (thanks for all those correcting my spelling which stinks!). Unfortunately I can’t devote as much time to it as I would like. If you notice a link has changed, please let me know. HTML or Hypertext Markup Language is used to create webpages for websites on the World Wide Web. Once you have seen a bit of what is out there you may want to contribute a page of your own. HTML is a relatively simple language that utilizes elements, such as TAGS to create the desired features of the page.

TAGS are used to translate the text so that a viewer can understand what to display. A viewer (a.k.a. browser) can be Netscape, Mosaic, Cello, or whatever you use to view the World Wide Web. Many HTML programs are available and they often include pre-written tags in the form of radio buttons. Below you will find links to various HTML editors. Tags are also used to link various pages together. Each time you click on the blue (in Netscape) text of a page a tag is called upon to address and link to another place. Tags are the basis for the HTML language are fairly easy to understand.

There are many sites that offer good introductions to HTML, they can be found on search engines. Here is a very basic HTML program to give you a better idea of the language:

<HTML>
<HEAD>
<TITLE> Sample HTML Page </TITLE>
</HEAD>
<BODY>
<H1> This is a simple page written in HTML </H1>
<HR>
This would be your first paragraph of text.
<P>
This would be your second.
</BODY>
</HTML>

 this is what it looks like..

This is a simple page written in HTML


This would be your first paragraph of text.

This would be your second.

As you can see, HTML is not that difficult. There are of course things in HTML that take a bit longer to learn. These include forms and imagemaps, but you don’t need to know them to get started. The sites listed below offer more indepth coverage of HTML and all its aspects. Always remember that HTML is an evolving language (the 3.0 standard is being worked out now) and that different viewers can interpret HTML a bit differently.

HTML reference

The HyperText Markup Language (HTML) is composed of a set of elements that define a document and guide its display. This document presents a concise reference guide to HTML, listing the most commonly used elements from Versions 1 and 2 of HTML, and giving a brief description of those elements.

Users should be aware that HTML is an evolving language, and different World-Wide Web browsers may recognize slightly different sets of HTML elements.

Introduction

An HTML element may include a name, some attributes and some text or hypertext, and will appear in an HTML document as

<tag_name> text </tag_name>
<tag_name attribute_name=argument>
text </tag_name>
, or just
<tag_name>

For example:

<title> My Useful Document </title>

and

<a href="argument"> text </a>

An HTML document is composed of a single element:

<html> . . . </html>

that is, in turn, composed of head and body elements:

<head> . . . </head>

and

<body> . . . </body>

To allow older HTML documents to remain readable, <html>, <head>, and <body> are actually optional within HTML documents.

Elements usually placed in the head element

<isindex>
Specifies that the current document describes a database that can be searched using the index search method appropriate for whatever client is being used to read the document. For example, a Lynx user will use the “s” keyboard command.
<title> . . . </title>
Specify a document title. Note that the title will not appear on the document as is customary on printed documents. It will usually appear in a window bar identifying the contents of the window. HTML header tags perform the functions usually reserved for titles.
<base href="URL">
Specify the name of the file relative to which partially qualified pathnames in URLs should be interpreted. If not otherwise specified the URL containing the document being displayed is used as the base.
<link rev="RELATIONSHIP" rel="RELATIONSHIP" href="URL">
The link tag allows you to define relationships between the document containing the link tag and the document specified in the “URL”. The rel attribute specifies the relationship between the HTML file and the Uniform Resource Locator (URL). The rev attribute (for “reverse”) specifies the relationship between the URL and the HTML file. For example, <link rev="made" href="URL"> indicates that the file maker or owner is described in the document identified by the URL. (Note that link tags are not displayed on the screen as part of the document. They define static relationships, not hypertext links.)

Elements usually placed in the body element

The following sections describe elements that can be used in the body of the document.

 

Text Elements

<p>
The end of a paragraph that will be formatted before it is displayed on the screen.
<pre> . . . </pre>
Identifies text that has already been formatted (preformatted) by some other system and must be displayed as is. Preformatted text may include embedded tags, but not all tag types are permitted. The <pre> tag can be used to include tables in documents.
<listing> . . . </listing>
Example computer listing; embedded tags will be ignored, but embedded tabs will work. This is an archaic tag.
<xmp> . . . </xmp>
Similar to <pre> except no embedded tags will be recognized.
<plaintext>
Similar to <pre> except no embedded tags will be recognized, and since there is no end tag, the remainder of the document will be rendered as plain text. This is an archaic tag. Note that some browsers actually recognize a </plaintext> tag, even though it is not defined by the standard.
<blockquote> . . . </blockquote>
Include a section of text quoted from some other source.

Hyperlinks or Anchors

<a name="anchor_name"> . . . </a>
Define a target location in a document
<a href="#anchor_name"> . . . </a>
Link to a location in the base document, which is the document containing the anchor tag itself, unless a base tag has been specified.
<a href="URL"> . . . </a>
Link to another file or resource
<a href="URL#anchor_name"> . . . </a>
Link to a target location in another document
<a href="URL?search_word+search_word"> . . . </a>
Send a search string to a server. Different servers may interpret the search string differently. In the case of word-oriented search engines, multiple search words might be specified by separating individual words with a plus sign (+).

An anchor must include a name or href attribute, and may include both. There are several optional attributes, but they are rarely encountered.

The structure of a Uniform Resource Locator (URL) may be expressed as:

resource_type:additional_information

where the possible resource types include: file, http, news, gopher, telnet, ftp, and wais, among others, and each resource type relates to a specific server type. Since each server performs a unique function, each resource type requires different additional_information. For example http and gopher URLs will have a structure like:

resource_type://host.domain:port/pathname

The colon followed by an integer TCP port number is optional, and is used when a server is listening on a non-standard port.

Strictly speaking, the anchor_name
and search_word information included in the name and href attributes in the examples above are part of the URL. They are presented as separate entities for simplicity. A more complete description of URLs is presented in http://www.w3.org/hypertext/WWW/Addressing/Addressing.html

Headers

<h1> . . . </h1> Most prominent header
<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>
<h6> . . . </h6> Least prominent header

Logical Styles

<em> . . . </em>
Emphasis
<strong> . . . </strong>
Stronger emphasis
<code> . . . </code>
Display an HTML directive
<samp> . . . </samp>
Include sample output
<kbd> . . . </kbd>
Display a keyboard key
<var> . . . </var>
Define a variable
<dfn> . . . </dfn>
Display a definition (not widely supported)
<cite> . . . </cite>
Display a citation

Physical Styles

<b> . . . </b>
Boldface
<i> . . . </i>
Italics
<u> . . . </u>
Underline
<tt> . . . </tt>
Typewriter font

Definition list/glossary: <dl>

<dl>
<dt> First term to be defined
<dd> Definition of first term
<dt> Next term to be defined
<dd> Next definition
</dl>

The <dl> attribute compact can be used to generate a definition list requiring less space.

 

Present an unordered list: <ul>

<ul>
<li> First item in the list
<li> Next item in the list
</ul>

Present an ordered list: <ol>

<ol>
<li> First item in the list
<li> Next item in the list
</ol>

Present an interactive menu: <menu>

<menu>
<li> First item in the menu
<li> Next item
</menu>

Present a directory list of items: <dir>

<dir>
<li> First item in the list
<li> Second item in the list
<li> Next item in the list
</dir>

Items should be less than 20 characters long.

 

Entities

&keyword;
Display a particular character identified by a special keyword. For example the entity &amp; specifies the ampersand ( & ), and the entity &lt; specifies the less than ( < ) character. Note that the semicolon following the keyword is required, and the keyword must be one from the lists presented in:
http://www.w3.org/pub/WWW/MarkUp/html-spec/html-spec_9.html#SEC9.7
&#ascii_equivalent;
Use a character literally. Again note that the semicolon following the ASCII numeric value is required.

HTML Forms Interface

The HTML forms interface allows document creators to define HTML documents containing forms to be filled out by users. When a user fills out the form and presses a button indicating the form should be “submitted,” the information on the form is sent to a server for processing. The server will usually prepare an HTML document using the information supplied by the user and return it to the client for display.

The following tags implement the forms interface:

  • <form> . . . </form>
  • <input>
  • <select> . . . </select>
  • <option>
  • <textarea> . . . </textarea>

The last four tags can only be used within a <form> . . . </form> element.

Define a form

<form> . . . </form>

Defines a form within an HTML document. A document may contain multiple <form> elements, but <form> elements may not be nested. Note that non-form tags can be used within a <form> element. Attributes and their arguments:

action="URL":
The location of the program that will process the form.
method=data_exchange method
The method chosen to exchange data between the client and the program started to process the form: One of get or post. post is preferred for most applications.
Example:
<form action="http://www.cc.ukans.edu/cgi-bin/register" method=post> . . . </form>

 

Define an input field

<input> (there is no ending tag)

Defines an input field where the user may enter information on the form. Each input field assigns a value to a variable which has a specified name and a specified data type. Attributes and their arguments:

type="variable_type"
Specifies the data type for the variable, where:

  • type="text" and type="password" fields accept character data
  • type="checkbox" fields are either selected or not
  • type="radio" fields of the same name allow selection of only one of the associated values
  • type="submit" defines an action button that sends the completed form to the query server
  • type="reset" defines a button that resets the form variables to their default values
  • type="hidden" defines an invisible input field whose value will be sent along with the other form values when the form is submitted. This is used to pass state information from one script or form to another.
  • type="image"defines an image map within a form and returns the coordinates of a mouse click within the image.
name="textstring"
where textstring is a symbolic name (not displayed) identifying the input variable as in:
<input type="checkbox" name="box1">
value="textstring"
where the meaning of textstring depends on the argument for type.

  • For type="text" or type="password", textstring is the default value for the input variable. Password values will not be shown on the user’s form. Anything entered by the user will replace any default value defined with this attribute.
  • If type="checkbox" or type="radio", textstring is the value that will be sent to the server if the checkbox is “checked”.
  • For type="reset" or type="submit", textstring is a label that will appear on the submit or reset button in place of the words “submit” and “reset“.
checked
No arguments. For type="checkbox" or type="radio", if checked is present the input field is “checked” by default.
size="display_width"
where display_width is an integer value representing the number of characters displayed for the type="text" or type="password" input field.
maxlength="string_length"
where string_length is the maximum number of characters allowed within type="text" or type="password" variable values. This attribute is only valid for single line "text" or "password" fields.

Define a select field

<select> . . . </select>

Defines and displays a set of optional list items from which the user can select one or more items. This element requires an <option> element for each item in the list. Attributes and their arguments:

name="textstring"
where textstring is the symbolic identifier for the select field variable.
size="list_length"
where list_length is an integer value representing the number of <option> items that will be displayed at one time.
multiple
No arguments. If present, the multiple attribute allows selection of more than one <option> value.

Define a select field option

<option>

Within the <select> element the <option> tags are used to define the possible values for the select field. If the attribute selected is present then the option value is selected by default. In the following example all three options may be chosen but bananas are selected by default.

<select multiple>
<option>Apples
<option selected>Bananas
<option>Cherries
</select>

 

Define a text area

<textarea> . . . default text . . . </textarea>

Defines a rectangular field where the user may enter text data. If “default text” is present it will be displayed when the field appears. Otherwise the field will be blank. Attributes and their values:

name="textstring"
textstring is a symbolic name that identifies the <textarea> variable.
rows="num_rows" and cols="numcols"
Both attributes take an integer value which represents the lines and number of characters per line in the <textarea> to be displayed.

Miscellaneous

<!-- text -->
Place a comment in the HTML source
<address> . . . </address>
Present address information
<img src="URL" alt="Alternate Text">
Embed a graphic image in the document. Attributes:

src
Specifies the location of the image.
alt
Allows a text string to be put in place of the image in clients that cannot display images.
align
Specify a relationship to surrounding text. The argument for align can be one of top, middle, or bottom.
ismap
If ismap is present and the image tag is within an anchor, the image will become a “clickable image”. The pixel coordinates of the cursor will be appended to the URL specified in the anchor if the user clicks within the ismap image. The resulting URL will take the form “URL?m,n” where m and n are integer coordinates, and the URL will specify the location of a program that will examine the pixel coordinates, and return an appropriate document.
<br>
Forces a line break immediately and retains the same style.
<hr>
Places a horizontal rule or separator between sections of text.

BACKGROUNDS & COLORS

The simplest, yet possibly most effective spice to add to a page is a nice background. I very rarely write a page using simple web-page gray as the background color.

How to do it
<BODY BACKGROUND="filename"> is all you need.. It’s nice to also add an ending </BODY> at the end of the file, as well.

<BODY BGCOLOR="#RRGGBB"> allows you to set the color of the background to something specific.

<BODY TEXT="#RRGGBB"> sets the color of all normal text within the document.

<BODY LINK="#RRGGBB" VLINK="#RRGGBB" ALINK="#RRGGBB"> sets the color of all other text in the document. LINK is just a regular, never before visited link, VLINK is a previously viewed link, and ALINK is an active link (“The color when you click on it”). Any or all of these three options can be omitted, of course.

RR, GG, and BB are two-digit hex numbers (00-FF) representing the amount of red, green, and blue in a particular color. Since it would be too difficult to have a good defined list of color names, hex numbers are used as well, so you get to invent your own colors. “#FFFFFF” represents white and “#000000” is black.

Can’t get background colors working?

If you can’t get the background color working, make sure you’re following “The Background Rule.” This rule states that your page must have the following format or backgrounds may not work:

<HTML>
<HEAD>
<TITLE>My Title</TITLE>
Any other heading information goes here
</HEAD>
<BODY (and background/bgcolor info if you wish)>
The document body goes here...
</BODY>
</HTML>

As long as all of those tags are in the right place, you’ll be fine.

THE BARE BONES GUIDE TO HTML

Thanks for visiting.

learn html

How to Tip – 101

how to tip

The following list suggests what are generally considered to be adequate amounts on how to tip various people for services rendered.

It should be kept in mind that tips are a way of expressing satisfaction.

Larger tips should be left for those who provide extraordinarily good service; smaller tips or no tip at all should be left when service is poor.

This table is by no means a RULE. Use your own judgment when you think amounts should be adjusted.

Again, these are just suggestions.


 

Location Person Amount
Airport skycaps $1 or more per bag
in-flight personnel none
Wheelchair $3 to $5 unless the person goes out of their way or the trip is unusually long; in that case be more generous
Electric Cart Transport $1 to $2 depending on how nice the driver is
Barbershop hair cutter 15% of the cost, generally a 
minimum of $1. If you do not 
get your hair cut often, then 
$5 is suggested 
owner none
person who shampoos or
washes hair
$1 to $2
Beauty Shop/ Hair Salon one operator 15% of bill
several operators 10% of bill to person who 
sets hair; 10% divided 
among others
manicurist $1 or more, depending on 
cost
owner none unless he / she is doing
your hair, then follow above rules
person who shampoos or
washes hair
$1 to $2
Buffet Style Restaurant Waiter / Waitress 5% to 10% of the total bill is suggested. This depends heavily on exactly how much work is done by the waitstaff. In some restaurants, the waitstaff does very little. Usually is simply bringing fresh linen and/or utensils. In some other restaurants, the staff brings drinks, and some orders from the kitchen directly.
                                          
Casino    A “check” is a chip Blackjack Dealer $5 Check (or more) per session. Also it is common to place a bet beside yours for the dealer. This side bet can be as large as 10%
of  your bet but usually is a $1 check.
Craps Dealer Craps Dealers like to be part of the action with you! It is common to place as much as 10%
($1 Check is common) beside your bet whether betting pass line, Don’t Pass, Place bet or Prop box. Craps Dealers are usually only allowed to
let a “Prop” box bet ride one time (if it hits)
before they have to take it down. The
designation for these “dealer” bets is called “Betting for the Boys”. “$1 ‘Yo for the boys!”
Drink Waiter/Waitress $1 Check (or more) per drink
Poker Dealers $5 (cash or check) per session,
win or lose. Winners should tip at least $10 (cash or check) but 10% or more is not uncommon.
Roulette Dealers $5 Check (or more) per session
Slot Machine Changer $1 Check or more per change
serve
Cruise Ship cabin steward $3.00 to $3.50 per day per person
waiter $3.00 per day per person
bus boy $1.50 per day per person
maitre d’ your choice, extra for special 
occasions like birthdays
cabin boy, 
bath steward, 
5% to 7 1/2% % of total 
fare divided among them, 
paid at the end of each 
week
bar steward, 
wine steward 
15% tip added to bill 
automatically
massage therapist Please refer to Personal Services
automatically
Deliveries Pizza
Andy’s Rant Pages
more info
$1-$2 if short distance 
$2-$3 for longer distances 
$5 or more for large deliveries
Furniture / Appliances 
Large Delivery of 
any kind (e.g. exercise 
equipment, air conditioner, 
refrigerator, etc.)
$5-$10 per person minimum. 
If delivery is large, heavy or 
difficult, or requires assembly, 
a larger tip is suggested, 
perhaps $20 per person.
Flowers $2-$5 for flowers
$5-$10 if it is a large plant or for heavy
or large deliveries
Disc Jockey (DJ) Dance Club The general rule of thumb is a dollar
to hear a song.  If the person wants it IMMEDIATELY, (if not sooner), the
general rule is from $5.00 to $10.00. (In a “Dance Club” atmosphere, since
a bad or strange request can clear a dance floor, the person has to make it
worth the D.J.’s effort for doing this no-no)
 
Food Delivery Service Driver / Delivery Person No to be confused with a regular delivery person such as for Pizza or Chinese food. This is for people who deliver food for a restaurant and usually deliver large orders such as entire meals. Sometimes this might involve a number of different restaurants. A tip of 15% to 20% is suggested depending on the size of the order and the distance traveled.
Holiday How to Tip Guidelines
Apartment Building Staff Custodian $20 – $30
Doormen $25 – $100 each. Depends on how fancy the building. Take into consideration how nice they are to you. If you get lot’s of visitors or lots of deliveries. If they have actually opened the door for you always. To maintain this level of quality service, you have to pay for it. So just do it.
Handymen $20 – $30 each
Superintendent $30 – $100 Depends on the type building and how the super has been with you through the year.
Health Club or Spa Locker Room Attendant(s) $5 – $10
Trainer(s) $50 more or less depending on how much personal attention you get
Others – how to tip
Baby Sitter two nights pay or more, maybe a gift as well
Beauty Salon the cost of a regular session plus a gift. No less than $5 per staffer. Depends of course on the setup of the place and how much work you regularly get done.
Cleaning Person a weeks pay or more
Day Care Service $15 – $25 and a gift
Garbage Collector(s) $15 – $20 each
Mail Carrier As with any civil servant, government agencies prohibit employees from receiving money as a gift or gratuity. The U.S. Postal Service is no exception, but they do allow people to be nice during the holidays and they accept the fact that it happens. The USPS asks that gratuities have a cash value no more than $20 and a letter of appreciation to the supervisor.
Newspaper Delivery Person  Daily delivery $15 – $25
Weekend Delivery only $5 – $15
Parking Attendant(s) If you care enough about your car, tip generously to each and every attendant individually. As a rule, you can give each attendant $10 to $20 dollars each. If you have unusual times when you bring your car in or take it out, or if you like to have your car ready when you get there, or any other service where they go out of the way for you, a half month’s rate divided amongst the attendants is considered good practice. If you don’t care much about your car park it in the street. 
Hotel chambermaid $5 a night minimum. More 
if long stays (over a week) 
Consider $7 to $9 a night.
room service waiter 15% of bill
bellhop  $10 for bringing 
you to your room with 
luggage; $5 dollars for 
opening and showing the 
room
lobby attendant none for opening door 
or calling taxi from 
stand; $1 dollar or more 
for help with luggage or 
finding a taxi on the 
street
desk clerk none unless special service is 
given during long stay; 
then, $5
concierge $5-$10 Average. More for 
special services or favors
Limousine driver 20% of the bill
 
Motor Coach Operator and Tour Guide(s) Driver $1 to $2 per person per day. 
Tour Guide $1 to $2 per person per day.
Parking garage  parking attendant  $1. 
If attendant helps 
with luggage/packages 
$5 is customary. If attendant 
has to go a great 
distance to get your car 
$2 or more is suggested 
Pet Related Services Dog Groomer 15% of the bill. No less than $2
per dog
Personal Services
Massage Therapist
rate suggested by massage
therapist Cathy Forbes
Typically, for a one hour massage ($50 range) a tip of 10% is acceptable. This can be adjusted following the guidelines for a full service fine restaurant. A 20% tip for a good massage is not uncommon
Restaurant (it is customary to calculate the tip on the total bill, including the tax)  waiter or waitress  15% of bill. 20% If it is 
a 4 star + restaurant or 
for large parties.
headwaiter/

maitre d’

none, unless 
special services 
are provided; 
then, about $5
owner none
wine steward 15% of wine bill
bartender 10-15% of bar bill
busboy none
servers at counter 15% of bill
coat check attendant $1 for one or two coats
rest room attendant 50 cents
car park attendant $1
Sports arena  usher  50 cents to $1 per party
if shown to your seat
Taxi driver 15% of fare, no less than 
25 cents
Train  Dining car waiter 15% of bill
stewards/bar car waiters  15% of bar bill
redcaps posted rate plus 50 cents