The Slacker's Guide to HTML
Sitemap

HTML Guide - Home
  • The Basic of HTML
  • Total Text Manipulation
  • Images and Lists
  • Links and Forms
  • Tables and Frames
  • Adding Sound, Refreshing, Guestbooks, and more..

  • Style Sheets Guide
  • Properties
  • Selectors
  • Values
  • Measurement

  • Interactive Tag Reference

  • Free Downloads (Editors, Validators, Debuggers, Link Checkers, More)

  • Browser Downloads & Reviews

  • Tips and Tricks in HTML

  • Web Site Promotion

  • Page Layout w/ Tables

  • Gif VS JPEG

  • Resources

  • Friends

  • Link to This Site

  • Email Me

    <-- Back to HTML contents

    Click Here to Tell a Friend about The Slacker's Guides!
    get this gear!


    CONTENTS


    Links

    Links

    Links are the HTML tags that make the world-wide-web a web. Without links to different sites, people wouldn't be able to navigate around the Internet (why is the "I" supposed to be capitalized, anyway?) and find what it is they need. For the most part, each and every page on the 'net is connected, whether it be through one link straight from Mr. or Mrs. Popular themselves or through a series of 10,000 links. In order to make a link, you have to know one thing: what the address of the site you are linking to is. Once you know that, you're set.

    Now, let's assume you're placing a link to my page on your site (hint). Here is an example of what that link would look like:

    The Slacker's Guide to HTML - Best damn HTML guide ever!

    That link was created using the following HTML:
    <A HREF="http://slackerhtml.tripod.com/"> The Slacker's Guide to HTML</A> - Best damn HTML guide ever!

    The string of letters and characters "http://slackerhtml.tripod.com/htmlcon.html" is the address of my site on the internet. Internet addresses are also known as URL's.

    The opening and closing tags for a link are as follows:
    Opening:<A HREF="address">
    Closing:</A>

    The text in between those two tags is the title of the page that you are linking to or whatever text you want to appear as the link.

    And so ends the section on basic links. Enjoy.

    Image links

    Image links are pictures that can act as links. Using this is so simple, actually. everything you just learned in the above section on links is used in this lesson, plus a little bit of HTML for images. In the simplest and truest of terms, image links are just the HTML for images and links all mixed in together.

    If you did not read the part on links and do not know how to make a text link yet, I suggest going back by clicking on the word "link".

    The HTML for an image link going to the site YukYuk.com, which is located at "http://www.yukyuk.com" and presented by an image of a logo I found at the YukYuk site would appear like this:

    <A HREF="http://www.yukyuk.com"><IMG SRC="http://www.yukyuk.com/images/menu_yukyuk_title.GIF" border=0></A>

    As you can see, instead of text representing the object you click on to activate the link, an image named "yukyuk.gif" is used. Also, there is an additional tag used in this: "border=0". That tag specifies the width of the line that can be used as a border to designate where the image and the link ends. Borders are in most cases undesirable.

    Anyway, the product of that above HTML linking to YukYuk.com is this:

    And that's all there is to image links.

    Email links

    E-Mail links are very easy to do and very useful. No one wants to cut and paste E-Mail addresses, they just want to click somewhere and have the hard stuff done for them. You can also add this HTML to that of an image link (in place of the target URL address) to create an image E-Mail link. Here is how to do the all-so-useful E-Mail link:

    E-Mail me!

    That email link was created using this HTML:
    <A HREF="mailto:[email protected]">E-Mail me!</A>

    Note! If you use a picture so someone can click on it to send you an E-Mail, then please stay away from the boring cliche~ pictures that everyone else uses! For your own good, and that of everyone else on the planet, please be original and use your own brain when thinking of a creative way to get people to send you E-Mail.

    To make an email click-on link that already has the subject filled out, then just add ?Dogs and cats on to the end of the HTML, before the end of the quotes and the closing bracket. It would look like this:

    E-mail w/subject

    And that was bunged up with this HTML:
    <A HREF="[email protected]? SUBJECT=Dogs and cats">E-mail w/subject</A>

    Click on the link to see what happens if you don't understand.

    Enjoy.

    File links

    A link to a file is the same as a link to a page. Simply use the files address instead of a URL. Example:
    Download a Program!
    That link would lead to a program being automatically downloaded. In this case the program's name is program.exe. Keep in mind that this link that's the example doesn't lead to any program. It's just sample code.
    The HTML would appear as this:
    <a href="program.exe">
    Download a Program!</a>

    Jumping links

    Internal links can be a very difficult topic to really understand. It's based on the concept of being able to link to things within the same document, or page. As you may or may not know, internal links are what I use for my table of contents.
    To really understand these types of links, and to teach them to you, I have to tell you the basics. Here they are:

    The link is the text that is highlighted. The text that you click on to go somewhere is the link.

    The anchor is the spot you go to. If I was linking to YAHOO!, the anchor would be "http://www.yahoo.com".

    With internal links, the link and anchor are both on the same page, obviously. So, the link has to point to something other than a conventional anchor.
    Now I will show you the HTML since you should have a basic understanding:
    <a href="#favoritepages">My favorite pages</A>
    would take you to this anchor:
    <a name="favoritepages">My favorite pages</A>

    *You can change the text in between the opening and closing tags.

    You can jump to specific areas on another page, too. Simply address the page area you want to go to like so:
    <a href="http://www.here.com/two.html#area">Learn about "area"</a>

    That HTML would lead you to the page known as two.html at the section (anchor) called "area".

    That is all you need to kow about internal links, or as some people call it, "jumping" within a document.

    New window links

    To make a link open up in a new browser window, add the following code to your link in HTML:

    target="resource window"

    The finished product in a link to YAHOO! that opens up a new window would look like so:
    <a href="http://www.yahoo.com" target="resource window">YAHOO!</a>
    And that link was jimmied up with this HTML:
    <a href="http://www.yahoo.com" target="resource window">YAHOO!</a>

    Simple enough, right?

    Forms

    Opening & Closing tags

    OK. All I have to say here is don't forget the opening and closing tags! The opening tag is:
    <form>

    The closing tag is:
    </form>

    Small input boxes

    Name:
    That small box was created using this HTML:
    Name:<INPUT TYPE="TEXT" NAME="NAME" SIZE=30, 1 MAXLENGTH=30>

    The SIZE and MAXLENGTH can be changed.

    Big input boxes


    That big box was made with this HTML:
    <TEXTAREA NAME="TEST" ROWS=4 COLS=40>
    </TEXTAREA>

    The ROWS and COLUMNS can be changed.

    Radio buttons

    Check the box that contains your IQ value...
    1-10
    11-20
    21-40
    41-60
    61-80
    81-99
    100-130
    131-169

    That questionaire was bunged up with this HTML:
    <dl>
    <dt>
    Check the box that contains your IQ value...
    <dd><input type=radio name="1" value= "1">
    1-10
    <dd><input type=radio name="1" value= "2">
    11-20
    <dd><input type=radio name="1" value= "3">
    21-40
    <dd><input type=radio name="1" value= "4">
    41-60
    <dd><input type=radio name="1" value= "5">
    61-80
    <dd><input type=radio name="1" value= "6">
    81-99
    <dd><input type=radio name="1" value= "7">
    100-130
    <dd><input type=radio name="1" value= "8">
    131-169
    </dl>
    </dt>

    The NAME and VALUE can be changed. The VALUE should be a short interpretation of what will appear on the screen, and the NAME should be used to accentuate the VALUE. By changing input type=radio into input type =checkbox you will turn the radio buttons to check boxes. Check boxes allow you to choose more than one thing.

    Pull-down boxes

    I apologize to IE4 users for the placement of my example pull-down box. It just doesn't want to cooperate with me.

    My age is between:

    That was created with the following HTML:
    My age is between...
    <SELECT NAME="My age is">
    <OPTION>Under 12
    <OPTION>12-16
    <OPTION>17-21
    <OPTION>22-39
    <OPTION>40-59
    <OPTION>60-99
    </SELECT>

    Ahhh, ever so simple.

    Send & clear buttons


    Those were created using this HTML:
    <INPUT TYPE="SUBMIT" VALUE="SEND">
    <INPUT TYPE="RESET" VALUE="CLEAR">

    By changing the VALUE, you change the words that appear on the button. Do not change the INPUT TYPE if you know what's good for you.

    And now you probably want to know where all that info these people are putting in this forms goes. Hmmm, good question. It goes nowhere unless you tell it to. Up above, where I show you folks the HTML for the buttons, is where you can do this stuff. In the ACTION part, put mailto:[email protected]. Don't actually put that, word for word, obviously. It will send the info to your e-mail address.
    The action tag belongs with the HTML for the send button.
    Look:
    <INPUT TYPE="SUBMIT" VALUE="SEND" ACTION="mailto:[email protected]">

    And that would send it to your email address.

    BUT WAIT!!!!! I have one more thing to say!!! If you have a page with Geocities, then you should consult the forms section of their help page for a more complete, more Geo-centric, and more Geo-relevant guide on forms.

    Thank you, please drive through.

    You can now easily program forms and any type of link into your page, enabling visitors to send you feedback and explore other sites relevant to yours. Great, huh? Whatever.


    Continue -->

    | Back to Top of Page |

    Related Links





    HTML Tips & Tricks: Password Forms

    Frames: Linking in Frames

    Free HTML Tools: Download a Free Link Checker