|
No question is too simple!
The target attribute allows you to specify where the specified URL appears.
"_blank" is a target the browser automatically understands. It knows to open a new window and populate the new window with the file referenced by the href attribute.
"_blank" is an example of a pre-defined target, the others are "_top", "_parent" (used for framesets) and the default behaviour of a browser "_self" ( show the new page in the current frame).
When you create a frameset you can give each frame a name and then use the target attribute to target the rendering of new pages. These are user-defined targets.
For example in your frameset file you might have :
<frame src="somepage.htm" name="frame1">
In another file you might have :
<a href="someotherpage.htm" target = "frame1">Someotherpage</a>
The result of clicking the above link would be to display someotherpage.htm in the frame called "frame1"
As to your second question. If you have a folder of html pages next to a folder of images in a main directory you reference images from your pages thus :
<img src="../images/someimage.gif">
The "../" tells the browser to move up one level in the directory structure.
If your page lives next to the images folder then it would just need the code :
<img src="images/someimage.gif">
HTH
Last edited by ElectricSheep; 11-02-2004 at 02:58 PM..
|