untitled
viviti
 HTML Amigo HomeHome
 HTML
   Introduction to HTML
   Using Notepad
   General Form
   Meta Tags
   Text Formatting
   Lists
   FTP
   Links
     Internal Links
     Anchor Links
     External Links
     Bad Style/Downloads
   Tables
   Images/Multimedia
   Frames
   Forms
   Style Sheets
   Javascript
   Web Hosting
   Special Characters
   Glossary
 Help Forums
   HTML Help Forum
Fast connection
   HTML Help Forum
Slow connection
 Extra (Important) Stuff
   Comments
   Link To Us
   Web Tools
   Resources
   The Poll Page


Internal Links

      So let's take a look first at internal tags. Let's say your web address is www.mysite.com. Now your first page is called index.html (remember) and you have another page you want to link within your site. How do you do it?

      The tag that handles links looks like this:

< A HREF ="pageaddress">Link Text Shown on Screen</A>

      HREF stands for Hypertext reference. Basically it tells the browser, "Go over here and check this out!!"

So here's the code for the resources page on this site:


Which produces this wonderful result: Resources

      Notice that in the address for the page I didn't write "http://www.htmlamigo.bravehost.com/resources.html". Why? Well you see there is really no need. The browser has already gone to that location (www.htmlamigo.bravehost.com/). So all my HTML files are right there. However, if I had another folder which my resources page was in it would look like this: "foldername/resource.html"

The Target Attribute

      Has it ever happened to you that when you click a link a new window pops up - displaying the website in the new window while the original website is still visible? The TARGET attribute can be added in the < A> tag. It has three possible values:"

TARGET = "_blank"
TARGET = "_self"
TARGET = "_parent"
TARGET = "_top"

TARGET="framename"
The website opens in a new window
The website opens in the same window (default)
The website opens in the parent frame
The website breaks free of page with frames uses the whole window to diplay the site.
The website opens in the frame specified.

Try These: Resources (TARGET = "_blank") || Resources (TARGET = "_self")

      The addition of the TARGET attribute is only needed if your target is different then "_self", because that is its default value.

      Some of these attributes need frames to work. You will learn about frames in a future tutorial. In general though the two main ones you will use the most are TARGET = "_blank" and TARGET = "_self".

Putting it Together

So putting it all together the < A> Tag looks like this:


Rate Tutorial:
12345
Rated: 0 out of 5
Votes: 0
Free Email Forms from Bravenet.com

Continue to Anchor Links

* definition: library.wexler.hunter.cuny.edu/lyannott/thesis_guide/libraryterms.html




© HTML Amigo 2005


Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Email Marketing
powered by a free webtools company bravenet.com