Question Answer Set - 7
do I make a link or form in one frame update another frame?
In the frameset document (the HTML document containing the <frameset>
<frame> tags), make sure to name the individual frames using the NAME
attribute. The following example creates a top frame named
"navigation" and a bottom frame named "content":
<frame name="navigation" src="navigation.html">
<frame name="content" src="content.html">
<!-- Alternative non-framed version -->
Then, in the document with the link, use the TARGET attribute to specify which
frame should be used to display the link. (The value of the TARGET attribute
should match the value of the target frame's NAME attribute.) For example:
<a target="content" href=...>
To target a form submission, use the TARGET attribute of the FORM element, like
<form target="content" action=...>
Normally, the default target frame is the current frame ("_self"). To
change the default target for every link/form on the page, use the TARGET
attribute of the BASE element, like this:
I try to upload my site, all my images are X's. How do I get them to load
They are a few reasons that this could happen.
The most common are:
1. You're attempting to use a .bmp or .tif or other non-supported file format.
You can only use .gif and .jpg on the web. You must convert files that are not
.gif or .jpg into a .gif or .jpg with your image/graphics program.
2. You've forgotten to upload the graphic files. Double-Check.
3. You've incorrectly linked to the images. When you are starting out, try just
using the file name in the <img> tag. If you have cat.jpg, use
4. Image file names are case-sensitive. If your file is called CaT.JpG, you
cannot type cat.jpg, you must type CaT.JpG exactly in the src.
5. If all of the above fail, re-upload the image in BINARY mode. You may have
accidentally uploaded the image in ASCII mode.
there a site that shows which tags work on which browsers?
There have been several attempts to do this, but I'm not aware of any really
good source of comparisons between the browsers. The trouble is that there are
many different versions of each browser, and many different tags. All current
browsers should support the tags in the official HTML 3.2 specification, but the
major ones also support nonstandard tags and sometimes have slightly different
implementations. One place that has fairly good compatibility info is
does the browser show my plain HTML source?
If Microsoft Internet Explorer displays your document normally, but other
browsers display your plain HTML source, then most likely your web server is
sending the document with the MIME type "text/plain". Your web server
needs to be configured to send that filename with the MIME type
"text/html". Often, using the filename extension ".html" or
".htm" is all that is necessary. If you are seeing this behavior while
viewing your HTML documents on your local Windows filesystem, then your text
editor may have added a ".txt" filename extension automatically. You
should rename filename.html.txt to filename.html so that Windows will treat the
file as an HTML document.
can I display an image on my page?
Use an IMG element. The SRC attribute specifies the location of the image. The
ALT attribute provides alternate text for those not loading images. For example:
<img src="logo.gif" alt="ACME Products">
do my links open new windows rather than update an existing frame?
If there is no existing frame with the name you used for the TARGET attribute,
then a new browser window will be opened, and this window will be assigned the
name you used. Furthermore, TARGET="_blank" will open a new, unnamed
In HTML 4, the TARGET attribute value is case-insensitive, so that abc and ABC
both refer to the same frame/window, and _top and _TOP both have the same
meaning. However, most browsers treat the TARGET attribute value as
case-sensitive and do not recognize ABC as being the same as abc, or _TOP as
having the special meaning of _top.
Also, some browsers include a security feature that prevents documents from
being hijacked by third-party framesets. In these browsers, if a document's link
targets a frame defined by a frameset document that is located on a different
server than the document itself, then the link opens in a new window instead.
do I get out of a frameset?
If you are the author, this is easy. You only have to add the TARGET attribute
to the link that takes readers to the intended 'outside' document. Give it the
value of _top.
In many current browsers, it is not possible to display a frame in the full
browser window, at least not very easily. The reader would need to copy the URL
of the desired frame and then request that URL manually.
I would recommend that authors who want to offer readers this option add a link
to the document itself in the document, with the TARGET attribute set to _top so
the document displays in the full window if the link is followed.
do I make a frame with a vertical scrollbar but without a horizontal scrollbar?
The only way to have a frame with a vertical scrollbar but without a horizontal
scrollbar is to define the frame with SCROLLING="auto" (the default),
and to have content that does not require horizontal scrolling. There is no way
to specify that a frame should have one scrollbar but not the other. Using
SCROLLING="yes" will force scrollbars in both directions (even when
they aren't needed), and using SCROLLING="no" will inhibit all
scrollbars (even when scrolling is necessary to access the frame's content).
There are no other values for the SCROLLING attribute.
any problems with using frames?
The fundamental problem with the design of frames is that framesets create
states in the browser that are not addressable. Once any of the frames within a
frameset changes from its default content, there is no longer a way to address
the current state of the frameset. It is difficult to bookmark - and impossible
to link or index - such a frameset state. It is impossible to reference such a
frameset state in other media. When the sub-documents of such a frameset state
are accessed directly, they appear without the context of the surrounding
frameset. Basic browser functions (e.g., printing, moving forwards/backwards in
the browser's history) behave differently with framesets. Also, browsers cannot
identify which frame should have focus, which affects scrolling, searching, and
the use of keyboard shortcuts in general.
Furthermore, frames focus on layout rather than on information structure, and
many authors of framed sites neglect to provide useful alternative content in
the NOFRAMES element. Both of these factors cause accessibility problems for
browsers that differ significantly from the author's expectations and for search