FAQs


Frequently Asked Questions

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 » 

 • Jalfrezi-Related
 • General
 • Links
 • Tables
 • Forms
 • Style sheets
 • Lists
 • Image maps
 • Frames
 

Go to ContentsJalfrezi-Related

Can I put a link to Sizzling HTML Jalfrezi on my website?
Yes please! You are most welcome to include a link to Sizzling HTML Jalfrezi. Try using the following code:
<a href="http://www.jalfrezi.com/"> Sizzling HTML Jalfrezi </a>
Please keep the URL the same but feel free to change the text (as long as you're nice!). We do not have any specific graphics or buttons for linking as yet, but if you like, you could use the logo in the top left-hand corner. If you fancy designing your own button for Jalfrezi, please tell us - there could well be a copy of Jalfrezi in it for you!

What is Jalfrezi?
Jalfrezi is a curry from India. The name comes from jhal frezi which means dry fry. The dish was traditionally made to use up the leftover scraps of meat in the Raj and chillies were added, especially in the hot South, to mask any 'odd' flavours. It is now a very popular dish (and a particular favourite of mine), served in just about all Indian restaurants in the UK.

Is Sizzling HTML Jalfrezi available as an Adobe Acrobat, Microsoft Word or one big HTML file?
I'm afraid not - I simply haven't got the time. However you can go one better: I'll send you a complete copy of Jalfrezi for your hard drive, provide you with regular updates and give you priority attention for any HTML queries you may have. And what do I want in return? A couple of beers, that's all. Of course if you can't be there in person, I'll be quite happy to go down the pub for you - simply pop the money for your round (about 10 dollars or 5 pounds) in an envelope with your e-mail address and when I get it I'll e-mail you Jalfrezi and add you to the priority and updates list. Get all the details from the BeerWare page.

Go to ContentsLinks

How do I remove the underlining from links?
Using style sheet methods, you need to include the text-decoration attribute for your link text definitions. In a linked style sheet the syntax would be as follows:
	A:link		{text-decoration: none}
	A:visited	{text-decoration: none}
	A:active	{text-decoration: none}

How do I get links to change when I move the mouse over them?
Using style sheet methods, you need to include a link hover definition. In a linked style sheet, the syntax would be as follows to make links go bold as you move the mouse over them:
	A:hover	{font-weight: bold}

Go to ContentsTables

How do I center my table on the page?
The proper way to so this (according to HTML 3.2) is to include the attribute 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.

How do I create an empty cell?
A simple way to create an empty cell is to place a non-breaking space character in the cell. Use the following code:
<TD>&nbsp;</TD>

How do I change the fonts in my table?
With all Netscape browsers up to and including version 4, and Microsoft browsers up to and including version 3, you have to change the font of each individual table cell. In other words you need to include a new pair of <FONT> tags each time you start a new <TD>.

Go to ContentsLists

Why doesn't my TYPE attribute work?
Although the TYPE attribute is a legal part of HTML 3.2 it is not supported by MS Internet Explorer 3 and below.

Why doesn't my the COMPACT attribute make any difference?
Although the 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.

How can I create a numbered list such that subsections are automatically number 1.1.2, etc.
Unfortunately this is not currently possible. If you really need precisely this kind of numbering, your only choice is to create an ordered list without the list item tags and include your own numbers. Also remember that you cannot guarantee that every browser will indent the different list levels.

Go to ContentsForms

How do I password protect a web page?
Firstly, HTML cannot check passwords and allow the user entry - HTML is not an intelligent language and is only really designed for displaying documents on-screen and linking to other pages. The procedure therefore is to use HTML to create a password form which allows the user to type the password. The form is then directed (with the ACTION attribute) to some cgi-script, JavaScript or similar, which processes the password. Such scripts are outside the scope of Sizzling HTML Jalfrezi, however Yahooexternal link and Matt's Script Archiveexternal link 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 Libraryexternal link has a password scriptexternal link 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 programexternal link 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.


How can I check that all required form fields are completed and correct before sending the results?
This cannot be done by HTML alone, but can be performed by a JavaScript code. I will be addressing this problem in Jalfrezi later, but in the meantime try Do-it-yourself JavaScript forms.

How do change the size of the text on a button?
The easiest way to change button text size is to surround the button with suitable <FONT SIZE=x> tags The effect only works with Netscape Navigator 4 and Microsoft Internet Explorer 4 upwards.

Go to ContentsStyle sheets

The style sheet FAQs are now held on a separate page.

Go to ContentsImage maps

Is the any software available to automatically produce image maps?
CoffeeCup's Image Mapper++external link is a wonderfully simple way to automatically produce client-side image maps.

Go to ContentsFrames

I want to use frames on my site. Which page do I put my frame commands on?
Frames are displayed through a Frame Definition document. The frame definition describes the number and position of the frames and the URL of their contents. You cannot write the contents of the frames within the frame definition - these must always be held in separate documents. See Sizzling HTML Jalfrezi's section on Frames.

How can I load documents into multiple frames from a single link?
I'll explain here how to load two frames at the same time. Let's assume you'd like your website to be set up as follows:
    +-----+----------------------------------------------+
    |     |                                              |
    |  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.


How I do stop my webpages appearing inside other people's frames?
The only way to stop your web pages appearing inside other people's frames is to use JavaScript. If your own site does not use frames then you can employ the following script in each of your pages.
<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 Pagesexternal link and Still More Tricks to Frame-Proofing Your Pagesexternal link for more information.


I've created a frameset but when I load it into Netscape Navigator, the page remains blank. Why?
The most likely problem is a <BODY> tag outside the <NOFRAMES> tags. If a <BODY> tag is present outside the <NOFRAMES> tags then Netscape browsers will completely ignore the frameset.

Go to ContentsGeneral

How can I insert a printing page break into my page?
Generally speaking, you cannot currently insert a printing page break into web pages. The World Wide Web was conceived to be viewed on-screen, and that is still true today. While your readers may be able to print out content of web pages, some browsers do not have this facility and many that do, are not always proficient at the job. If you wish to provide your readers with a means to printed material, you are far better offering them a true paper based file format such as the superb Adobe Acrobatexternal link portable document format (pdf).

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 2external link. See also Cascading Style Sheets in Internet Explorer 4.0 external link.


How do I let my readers download a file?
The <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.


How can I run an executable program?
You cannot use HTML to run an executable program. Note: If you link to an executable file, eg. .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.

What is the NATURALSIZEFLAG Tag?
The 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.




Sizzling HTML Jalfrezi
ContactPurchase
Page Contents
Previous pageJalfrezi ContentsNext page

Click Here!