HTML - FAQ

How can I remove the border around an image? - Beginner

If you use the code
<IMG SRC="yourimage.jpg" border="0"> the border around the image will be removed.

How can I create local links within a document? - Beginner

This is where you come if you click on the link <A NAME="top"></A>
This is a normal link with the exception that it points to a place within the same document. <A HREF="#top">Top</A>
You can also write <A HREF="other.html#top">Top</A> if you want to link to a particular part of another document

How do I load a page in another frame? - Intermediate

First you must the name the different frames in your frameset like this:
<FRAMESET cols="100,*">
 <FRAME src="menu.html" name="menu">
 <FRAME src="start.html" name="main">
</FRAMESET>
After this, all you have to do is add a target variable to all your links that you wish to open in another frame, like this:
<A href="newpage.html" target="main">View the page</A>

How can I change two or more pages when a link is clicked? - Expert

The best solution is probably to create a JavaScript that handles this, an example would look like this:
<SCRIPT language="javascript">
function loadLinks(cUrl1,cFrame1,cUrl2,cFrame2) {
  parent.frames[cFrame1].location = cUrl1
  parent.frames[cFrame2].location = cUrl2
}
</SCRIPT>
Place this in the HEAD of your page. Then use the following format for your links:
<A href="javascript:loadLinks('url1','frame1','url2','frame2')">Name of link</A>
An example could look like this:
<A href="javascript:loadLinks('menu.html','menu','main.html','main')">Load main & menu</A>

Another solution would be to open a html file with a new frameset with the click.

How do I include another file inside a HTML file? - Intermediate

Can I protect my pages from being framed by someone else? - Expert

By adding this JavaScript in the HEAD of your document, you can check if the file has been loaded in a frame or not.
<SCRIPT language="javascript">
if (self != top) {
top.location.href = self.location.href
}
</SCRIPT>

How can I password-protect a HTML page? - Expert

How can I maintain the layout of my frames? - Expert