Make your own free website on


I mentioned before that there are some new tags that need to be put into normal HTML files. The most important one is an attribute of the <a> tag.


The <target> attribute is used in a file anchor (<a href="">) in order to define where the file is to be shown. There are four main possibilities for the value of this attribute:

The W3C, the ruling authority on HTML and Internet languages states the meaning of these rather vague target anchors like this:

Basically what that all means is that "_blank" will open the link in a new window. Good if you're linking to a foreign file, as the surfer can still look around your site. "_self" will open the link in the same frame as the document which contains the link, used normally for linking to files from the main information window. "_parent" will cancel the current frameset and open the file there. This looks like this for our last example:

mainFrame and bottom have now been combined to a new document window!!!

Will then look like this, after clicking on a _parent link in mainFrame.




"_top" should cancel all frames and show the document without any frame support whatsoever. This is also quite good for links to foreign pages, as they are then not "trapped" in your frames anymore. Similarly, you can offer a link on your page to kill frames, if someone links to your site, without thinking that your page is inside their frame. You just link to your start page with the taregt attribute set to "_top". This reloads your page without foriegn surrounding frames. But, then we all now know how not to trap someone elses page inside our own frames, so this problem should not arise!

You can also specify a frame name as a target; this is especially important when linking froma content window to an information window. However, the W3C thought of everybody who has to type HTML files by hand and designed a nice little tag called:

<base target="xyz">

This tag is inserted in the head of a HTML document and offers you the possibility of saying, "Everything I click on here shall be shown over there!" instead of xyz, you insert the name of the frame you want everything to be shown in. Simple. If you want a link to go somewhere else, however, you can still use target inside the <a> tag.

Further attributes:

You can configure your frameset just as easily as configuring a table, with the only difference that frames have a few more arguments than do tables:

These can be used either in the <frameset> as global values or in the <frame> as local variables.

But, as for everything in HTML, if you see something that looks good, then check out the source code, and try it out for yourself. Just keep experimenting - it's how the internet developed after all! :-)

If you have any questions to these pages, you can contact me here:

Back to the Index.