How
do I include the '<' or '>' symbols in my page?
As HTML
code uses the < and > symbols you cannot just write them straight
into the source document. What you can do however, is write in a character
code that tells the browser to put in either the < or > symbol.
The character codes to write "<HTML>" on the screen is:
<HTML>
The code
for "<" is '<' and the code for ">" is
'>'.
How
do I link to an e-mail address?
Creating
a link to an e-mail address uses fairly much the same code as to create
a link to another web page. You use the <A> tag, with the HREF attribute,
but instead of specifying a web page you specify a "mailto:"
address:
<A HREF="mailto:You@company.com">mail me</A>
How
do I make a page refresh automatically?
To make
a page refresh after a certain number of seconds can be useful, for example
on a page that displays stocks that update every 5 minutes. The code for
this is inserted inside the <HEAD> section of the document. The
code is:
<META HTTP-EQUIV="Refresh" CONTENT="300">
This will
refresh the page every five minutes.
What
are character codes?
Character
codes are special codes that render characters that are not avaliable
in normal text. See the answer to the above question: "How do I insert
the '<' and '>' characters in my page".
How
do I add an extra space to my document?
To add a
space to your document you need to insert a spacial character code. This
is the non-breaking space. It is easily remembered because the code is
" ", NonBreaking SPace. This is
inserted where you want the extra space.
How
do I make the page go to another page after a few seconds?
This is
similar to the question above about refreshing a page after a period of
time. This auto-navigation uses the same method, but with a small piece
of code added: the URL to go to when the time limit has expired. This
is added to the end of the CONTENT attribute:
<META HTTP-EQUIV="Refresh" CONTENT="20;http://www.company.com/index.htm">
The code
above sends the user to "http://www.company.com/index.htm" in
20 seconds from the loading of the page.
How
Do I Link To a Specific Part of a Page?
You use
a type of link called an anchor. Firstly you must create the 'anchor'
in the document that you are going to link to. This is at the point in
the page that you are going to link to. An anchor is the <A>, link,
tag without the HREF attribute, but with the NAME attribute:
<A NAME="theAnchor"></A>
Note that
there is nothing included in between the <A> opening and closing
tags. The next thing that you need to do is create a link to the anchor
within the document. This is done by appending a hash mark to the end
of the URL/HREF that you would normally use. For example:
<A HREF="page.htm#theAnchor">click me!</A>
This would
open up the page called "page.htm" and scroll to the point in
the page where "theAnchor" is located. If the anchor is in the
same page as the link, for example in a table of contents then you just
use the hash mark and the anchor name:
<A
HREF="#theAnchor">click me!</A>
How
do you make black bullet points show on a black background?
In the <BODY>
tag set the TEXT attribute to white (or other colour):
<BODY BGCOLOR="#000000" TEXT="#FFFFFF">
I have tested
this in both IE5 and Netscape 3.
For Internet
Explorer you can also surround the <UL> tags with <FONT color="#FFFFFF">
tags:
<FONT
color="#FFFFFF">
<UL>
<LI>Test Text</LI>
<LI>Test Text</LI>
</UL>
</FONT>
What
is the difference between *.htm files and *.html files
*.htm files
were for old Windows operating systems which only supported 3 letter extentions.
*.html was for other operating systems which supported four letter extentions
namely UNIX based machines. They have exactly the same content, but it's
just what your server supports.
How
Can I Hide My Source Code?
You can't.
|