Web page authoring produces a lot of questions. If you can't find answers elsewhere in Sizzling HTML Jalfrezi, hopefully you'll find a solution here. Click on a question to go to the answer. Click on the up arrow to get back to the questions.
Frequently Asked Questions » General Links Tables Forms Style sheets Lists Image maps Frames |
<a href="http://www.jalfrezi.com/"> Sizzling HTML Jalfrezi </a>
A:link {text-decoration: none} A:visited {text-decoration: none} A:active {text-decoration: none}
A:hover {font-weight: bold}
ALIGN="center"
in the <TABLE>
tag. Some browsers (in particular, all versions of Netscape prior to Navigator 4.0) do not honour the ALIGN
attribute on a table. With thisin mind, the most consistent way to center a table on the page is to enclose your entire table in <CENTER></CENTER>
tags.<TD> </TD>
<FONT>
tags each time you start a new <TD>
.TYPE
attribute work?TYPE
attribute is a legal part of HTML 3.2 it is not supported by MS Internet Explorer 3 and below.COMPACT
attribute make any difference?COMPACT
attribute is a legal part of HTML 3.2 it is not widely supported; neither MS Internet Explorer nor Netscape Navigator render this attribute.ACTION
attribute) to some cgi-script, JavaScript or similar, which processes the password. Such scripts are outside the scope of Sizzling HTML Jalfrezi, however Yahoo and Matt's Script Archive are good sources for further information, as are newsgroups such as comp.infosystems.www.authoring.cgi.
Selena Sol's Public Domain CGI Script Archive and Resource Library has a password script complete with instructions which you can freely download and install on your site, if your ISP allows cgi-scripts.
Internet Magazine's expert help pages demonstrate a small JavaScript program to password protect your pages. It wouldn't stop somebody determined from accessing the page, but it would stop a casual reader from going any further.
<FONT SIZE=x>
tags The effect only works with Netscape Navigator 4 and Microsoft Internet Explorer 4 upwards. The style sheet FAQs are now held on a separate page.
+-----+----------------------------------------------+ | | | | A | B | +-----+----------------------------------------------+ | | | | C | D | | | | | | | | | | | | | | | | | | | | | | +-----+----------------------------------------------+
Where A is a static logo, C is the index, D is the main display area and B is the banner or header for each page, therefore as D changes, so should B. The trick to loading two frames at a time is to put the two frames within their own frame. This means you will have to write (at least) two 'frame definition' documents.
With respect to the above example, the first frame definition should define frame A, frame C and a third frame to contain frames B and D (we shall call this frame E). Frame E will contain the second frame definition which controls how frames B and D are displayed. By way of example, the first frameset should be something like the following. This example displays 'Section 1' as the initial page for the main display area. Notice the 'name' attribute in the second frameset.
<FRAMESET COLS="100,*"> <FRAMESET ROWS="100,*"> <FRAME SRC="logo.htm"> <FRAME SRC="index.htm"> </FRAMESET> <FRAME SRC="section1.htm" NAME="maindisplay"> </FRAMESET>
The second frame definition, contained in section1.htm
, defines the header and main text for 'Section 1':
<FRAMESET ROWS="100,*"> <FRAME SRC="header1.htm"> <FRAME SRC="text1.htm"> </FRAMESET>
To make all this function you will need to add the TARGET
attribute to all the links in your index document, eg. <A HREF="section1.htm" TARGET="maindisplay">Section 1</A>
.
For more details, see Sizzling HTML Jalfrezi's section on Frames. Multiple frame loads can also be performed using Java and JavaScript.
<BODY onLoad="if (self != top) top.location = self.location">
If your website does use frames then you will have to use JavaScript to frame proof your pages. The following code checks to see if a document is in a frame and, if it is checks that the frame is one that you have named. If the frame is not one you have named then your page must be in someone else's frames and the script clears the frames and loads a document of your choice.
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--//
if (self != top) if ( top.frames[1].name !="mainarea") top.location = "http://vzone.virgin.net/sizzling.jalfrezi/index.htm"
//-->
</SCRIPT>
In the above example, the frame you're expecting the document be loaded in is called mainarea. If the script finds this isn't the case then it loads the file http://vzone.virgin.net/sizzling.jalfrezi/index.htm
and displaces the existing frames. Place the script in the HEAD
of your documents. See NetscapeWorld's The Best Way to Frame-Proof Your Pages and Still More Tricks to Frame-Proofing Your Pages for more information.
<BODY>
tag outside the <NOFRAMES>
tags. If a <BODY>
tag is present outside the <NOFRAMES>
tags then Netscape browsers will completely ignore the frameset.However, you can now insert a page break for users of Microsoft Internet Explorer 4 upwards (Netscape do not support this as yet). The code uses style sheet technology - see Jalfrezi's section on style sheets for a full explanation.
<BR STYLE="page-break-after:always">
This code is introduced in the W3C working draft of Cascading Style Sheets, level 2. See also Cascading Style Sheets in Internet Explorer 4.0 .
<A>
anchor element will link to any location or file you wish it to. This includes zip archives, sound files, Adobe Acrobat formats and executables. If it's a file you can link to it and hence download it. Therefore to allow your readers to download a zip archive, for example, you would simply use code similar to the following: <A HREF="archive1.zip">Download Now!</A>
.
Note: If you link to an executable file, eg. .exe
, the file will be downloaded, but it won't be run.
.exe
, the file will be downloaded, but it won't be run. This exception to this is users of Microsoft Internet Explorer 4 upwards, who can run executables directly through the browser.NATURALSIZEFLAG
is a tag that Adobe Pagemill puts into your HTML when you resize graphics. Pagemill uses this to keep track of resized graphics, though it is not a true HTML tag. Most browsers ignore tags they do not understand, so in most cases leaving it in will not hurt anything.