Free Auction Advertising and Free Website Promotion Auction Upload | Website Upload
 
Associate/Sponsor
 
 

Welcome to OIH HTML HELP/RESOURCE PAGE

Useful HTML Tips

When you write HTML text, you can never be sure how the text is displayed in another browser. Some people have large computer displays, some have small. The text will be reformatted every time the user resizes his window. Never try to format the text in your editor by adding empty lines and spaces to the text.

HTML will truncate the spaces in your text. Any number of spaces count as one. Some extra information: In HTML a new line counts as one space. 

Using empty paragraphs <p> to insert blank lines is a bad habit. Use the <br> tag instead. (But don't use the <br> tag to create lists. Wait until you have learned about HTML lists.)

You might have noticed that paragraphs can be written without the closing tag </p>. Don't rely on it. The next version of HTML will not allow you to skip ANY closing tags.

HTML automatically adds an extra blank line before and after some elements, like before and after a paragraph, and before and after a heading.

We use a horizontal rule (the <hr> tag), to separate the sections in our tutorials.


Simple copy and Paste the Code Snippets of HTML Code into your document or auction.

 

click any of the tabs to continue.
Headings

Headings

Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading.

HTML automatically adds an extra blank line before and after a heading.

Paragraphs

Paragraphs

Paragraphs are defined with the <p> tag.

HTML automatically adds an extra blank line before and after a paragraph.

 

Line Breaks

Line Breaks

The <br> tag is used when you want to end a line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it.

The <br> tag is an empty tag. It has no closing tag.

 

Backgrounds

Backgrounds

The <body> tag has two attributes where you can specify backgrounds. The background can be a color or an image.

Bgcolor

The bgcolor attribute specifies a background-color for an HTML page. The value of this attribute can be a hexadecimal number, an RGB value, or a color name:

The lines above all set the background-color to black. 

Background

The background attribute specifies a background-image for an HTML page. The value of this attribute is the URL of the image you want to use. If the image is smaller than the browser window, the image will repeat itself until it fills the entire browser window.

The URL can be relative (as in the first line above) or absolute (as in the second line above).

Note: If you want to use a background image, you should keep in mind:

  • Will the background image increase the loading time too much?
  • Will the background image look good with other images on the page?
  • Will the background image look good with the text colors on the page?
  • Will the background image look good when it is repeated on the page?
  • Will the background image take away the focus from the text?
Comments in HTML

Comments in HTML

The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date.

Note that you need an exclamation point after the opening bracket, but not before the closing bracket.

 

Anchor Tag

The Anchor Tag and the Href Attribute

HTML uses the <a> (anchor) tag to create a link to another document.

An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc.

The syntax of creating an anchor: 

The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.

This anchor defines a link to OfferItHere!:

Visit OfferItHere!

The line above will look like this in a browser:

 

Anchor Name

The Anchor Tag and the Name Attribute

The name attribute is used to create a named anchor. When using named anchors we can create links that can jump directly into a specific section on a page, instead of letting the user scroll around to find what he/she is looking for.

Below is the syntax of a named anchor:

The name attribute is used to create a named anchor. The name of the anchor can be any text you care to use.

The line below defines a named anchor:

You should notice that a named anchor is not displayed in a special way.

To link directly to the "tips" section, add a # sign and the name of the anchor to the end of a URL, like this:

A hyperlink to the Useful Tips Section from WITHIN the file "html_links.asp" will look like this: 

 

Target Links

The Target Attribute

With the target attribute, you can define where the linked document will be opened.

The line below will open the document in a new browser window:

 

Tables General

Tables

Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.

How it looks in a browser:

row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

 

Tables Border & Etc.

Tables and the Border Attribute

If you do not specify a border attribute the table will be displayed without any borders. Sometimes this can be useful, but most of the time, you want the borders to show.

To display a table with borders, you will have to use the border attribute:

 

Table Cells

Empty Cells in a Table

Table cells with no content are not displayed very well in most browsers.

How it looks in a browser:

row 1, cell 1 row 1, cell 2
row 2, cell 1

Note that the borders around the empty table cell are missing (NB! Mozilla Firefox displays the border).

To avoid this, add a non-breaking space (&nbsp;) to empty data cells, to make the borders visible: 

How it looks in a browser:

row 1, cell 1 row 1, cell 2
row 2, cell 1  

 

Unordered List

Unordered Lists

An unordered list is a list of items. The list items are marked with bullets (typically small black circles).

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

Here is how it looks in a browser:

  • Coffee
  • Milk

Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.

 

Ordered List

Ordered Lists

An ordered list is also a list of items. The list items are marked with numbers.

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

Here is how it looks in a browser:

  1. Coffee
  2. Milk

Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.

 

Definition List

Definition Lists

A definition list is not a list of items. This is a list of terms and explanation of the terms.

A definition list starts with the <dl> tag. Each definition-list term starts with the <dt> tag. Each definition-list definition starts with the <dd> tag.

Here is how it looks in a browser:

Coffee
Black hot drink
Milk
White cold drink

Inside a definition-list definition (the <dd> tag) you can put paragraphs, line breaks, images, links, other lists, etc.

 

Img Src

The Image Tag and the Src Attribute

In HTML, images are defined with the <img> tag. 

The <img> tag is empty, which means that it contains attributes only and it has no closing tag.

To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display on your page.

The syntax of defining an image:

The URL points to the location where the image is stored. An image named "oihl.gif" located in the directory "images" on "www.OfferItHere.com" has the URL: http://www.OfferItHere.com/images/oihl.gif.

The browser puts the image where the image tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph.

 

Alt Tag

The Alt Attribute

The alt attribute is used to define an "alternate text" for an image. The value of the alt attribute is an author-defined text:

The "alt" attribute tells the reader what he or she is missing on a page if the browser can't load images. The browser will then display the alternate text instead of the image. It is a good practice to include the "alt" attribute for each image on a page, to improve the display and usefulness of your document for people who have text-only browser.

 

 

Featured Sites
 
OIH Top Spots!

Banner 130x60

Banner 130x60 Spotlight Shuffle
Hot-eDeals
RiseSmart will help you find your dream $100k job
BidsNBins
alt
Take it off... keep it off
Scented Monkey
Free Shipping from Select Stores on SHOP.COM
Submit Zap
7-day Free trial of Napster!

Free Classifieds
LinkPro.org
Fine Art Presentations - the e.Gallery
KnowNews NewsWire
Penguin Air Cooling & Heating air conditioning.
The e.Lib, Inc.
Website reviews
online backgammon
free links

Advertise 2 Months For Only 2 Bucks! High Traffic Site!
Personal Shade Maker Stay Cool - NIB
GREEN garden bonnet cap LADIES HAT w/flap BUCKET hats
MEN'S UNIQUE BEAUTIFUL STEINHAUSEN ROSE GOLD WATCH  $$$
IT'S BIZARRE HOW NO ONE CAN'T GET THIS NUMBER RIGHT OMG
Advertise eBAY Store On ALL Pages For 90 Days!
CHICKEN LIPS & GATOR SNOT I SEEN IT ALL TOTALLY BIZARRE
Watch this Tan Boonie Hat rise in the eBay Pulse
HELP ME WITH MY HOT TAMALES OR IT'S OVER  TOTAL BIZARRE
TOTALLY BIZARRE ONE BOX OF KD KRAFT DINNER KIDS LOVE IT
Women's MOSSBRIO stretch Capri Pants SZ 11
media player
.5 Carat Diamond 14K White Gold Circle of Love Earrings
4 new suede & blue & pink handbags
New Tamagotchi Electronic Virtual Game
Texas Instruments TI-83 Plus Graphic Calculator
123VAP *** OFFERING A .925 STERLING RING ALONG WITH ???
MYSTRY BOX OF JEWELRY 30 BRACELETS
 THIS IS THE POT OF GOLD $1.50 MYSTERY AUCTION!!!
UP FOR AUCTION ONE SIGNED JOCKSTAP OF MINE  WOW! BID
The Beatles MONO Magical Mystery Tour NM+!!!!
14K LE COULTRE VACHERON CONSTANTIN MYSTERY GALAXY WATCH
MISTER MYSTERY #18-1954-CGC 6.0-Wolverton-BONDAGE Cvr
THE MYSTERY STONE-YouTube- Virgin Mary? Mother Teresa?
Advertise eBay Store 468x60 Banner Ad For 30 Days
IF GRANNY BLINKS YOU MUST BID NOW BIZARRE AUCTION MAF
Italian Art Statue Bird Fish Ceramic Sculpture MYSTERY
Mystery Gift Surprize Guaranteed value higher than bid
Pamper yourself!
ONLINE GARAGE SALE GRAB BAG PENNY AUCTION MYSTERY BOX
Haunted Mystery Psych Hospital Graveyard Recording Pics
Jewelry Mystery Auction Box - Stunning Jewelry Gifted
$$$2000 U.S. AMERICAN DOLLARS***IN A MYSTERY ENVELOPE*
TAKE A GUESS MYSTERY AUCTION!! FROM $500 TO $2 000!!!
LIFE SUCKS & I'M GIVING IT ALL AWAY BIZARRE AUCTION MAF
Mystery Box of brand new items great for resell
AVON MYSTERY BOX
TwiNkiEs Box MYSTERY AUCTION ! FREE SHIPPING! ??What??
Bath & and Body Works MYSTERY BOX Auction $250 PICK ME!
Advertise 2 Months For Only 2 Bucks! High Traffic Site!Personal Shade Maker Stay Cool - NIBGREEN garden bonnet cap LADIES HAT w/flap BUCKET hatsMEN\'S UNIQUE BEAUTIFUL STEINHAUSEN ROSE GOLD WATCH $$$IT\'S BIZARRE HOW NO ONE CAN\'T GET THIS NUMBER RIGHT OMGAdvertise eBAY Store On ALL Pages For 90 Days!CHICKEN LIPS & GATOR SNOT I SEEN IT ALL TOTALLY BIZARREWatch this Tan Boonie Hat rise in the eBay PulseHELP ME WITH MY HOT TAMALES OR IT\'S OVER TOTAL BIZARRETOTALLY BIZARRE ONE BOX OF KD KRAFT DINNER KIDS LOVE ITWomen\'s MOSSBRIO stretch Capri Pants SZ 11media player.5 Carat Diamond 14K White Gold Circle of Love Earrings4 new suede & blue & pink handbagsNew Tamagotchi Electronic Virtual GameTexas Instruments TI-83 Plus Graphic Calculator123VAP *** OFFERING A .925 STERLING RING ALONG WITH ???MYSTRY BOX OF JEWELRY 30 BRACELETS THIS IS THE POT OF GOLD $1.50 MYSTERY AUCTION!!!UP FOR AUCTION ONE SIGNED JOCKSTAP OF MINE WOW! BIDThe Beatles MONO Magical Mystery Tour NM+!!!!14K LE COULTRE VACHERON CONSTANTIN MYSTERY GALAXY WATCHMISTER MYSTERY #18-1954-CGC 6.0-Wolverton-BONDAGE CvrTHE MYSTERY STONE-YouTube- Virgin Mary? Mother Teresa?Advertise eBay Store 468x60 Banner Ad For 30 Days IF GRANNY BLINKS YOU MUST BID NOW BIZARRE AUCTION MAFItalian Art Statue Bird Fish Ceramic Sculpture MYSTERYMystery Gift Surprize Guaranteed value higher than bidPamper yourself! \"Mystery\" box GUESS 3-4X starting bid!ONLINE GARAGE SALE GRAB BAG PENNY AUCTION MYSTERY BOXHaunted Mystery Psych Hospital Graveyard Recording PicsJewelry Mystery Auction Box - Stunning Jewelry Gifted$$$2000 U.S. AMERICAN DOLLARS***IN A MYSTERY ENVELOPE*TAKE A GUESS MYSTERY AUCTION!! FROM $500 TO $2 000!!!LIFE SUCKS & I\'M GIVING IT ALL AWAY BIZARRE AUCTION MAFMystery Box of brand new items great for resellAVON MYSTERY BOXTwiNkiEs Box MYSTERY AUCTION ! FREE SHIPPING! ??What??Bath & and Body Works MYSTERY BOX Auction $250 PICK ME!Mystery Auction * Honeymoon /Bridal /Bachelorette gifts