<A HREF="link.html"><FONT COLOR="#FF00FF">Link</FONT></A>
If you have the <FONT COLOR> tags outside the <A> tag (such as below), then it will not work (i.e.: the link will be displayed using the default or the link color you specify within the BODY tag).
<FONT COLOR="#FF00FF"><A HREF="link.html">Link</A></FONT>
Note that <FONT> tag is not a standard html tag. However, it is supported on most browsers.
<HEAD><TITLE>.....</TITLE>
<STYLE>
<!--
a:hover
{
background: rgb(0,153,204); /*or any rgb value */
}
//-->
</STYLE>
</HEAD>
This should work on Internet Explorer 5 or newer. However, the a:hover pseudo class is currently not supported by the official CSS 1.0 specification, and it does not work on Netscape 4.7 or older. If you must have something like this on Netscape, your options will be to use JavaScript rollover or Java applet.
<HTML><HEAD><TITLE>Title</TITLE></HEAD> <BODY> My web page. <!-- this is a comment --> </BODY></HTML>
Some caution when commenting: avoid using any "--" within the
comment. Double dashes within a comment might be considered as
the end of the comment by some browsers (even though officially,
comments end with a "-->"). So, for example, try to avoid
something like this:
<!-- this is a comment -- there are two
dashes in the middle of this comment -->
<A HREF="link.html"><IMG SRC="image.gif" WIDTH="200" HEIGHT="20" BORDER="0"></IMG></A>
Another way is to disable directory listing
through
the server. You need to have access to the server to do this,
and I don't think all servers support this feature.
None of these will prevent user from reading that file from the
directory (if the file is already accessible from the web browser).
If user know the filename on the particular directory, he/she
can still access that file by typing the fill name on the browsers
URL prompt.
Tip 7: When user types on my text field, the text
does not wrap but scroll to the right side of the text field.
This looks bad... how can I make the text wrap
Use WRAP="VIRTUAL" like this example:
<TEXTAREA NAME="ANAME" ROWS="5" COLS="56" WRAP="VIRTUAL"></TEXTAREA>
VIRTUAL means that anything that the user enter will be wrapped when it reaches the end of the allocated width of the text field. However, when the form is submitted, the wrapping will not be preserved. To preserve the wrapping, use WRAP="PHYSICAL"
Tip 8: What is the correct way to print ©,
or other special characters
Many web page authoring program already has
an option that enables you to insert special characters. For
html hard-coder purists, these special characters need to be coded
with their corresponding "name-code." Below are the most common
special characters along with their corresponding name codes.
| COMMONLY USED SPECIAL CHARACTERS | |||||
|
© |
|
© |
° |
° |
|
® |
® |
½ |
½ |
||
& |
& |
¼ |
¼ |
||
< |
< |
¾ |
¾ |
||
> |
> |
÷ |
÷ |
||
± |
± |
£ |
£ |
||
" |
" |
¥ |
¥ |
||
¹ |
¹ |
§ |
§牋 |
||
| ² |
|
² |
¢ |
¢ |
|
| ³ |
|
³ |
¬ |
¬ |
|
(You can also use the corresponding ISO 10646 character code. ISO 10646 the standard character-set for the www. For example, use © for copyright sign, but unless you have an ISO table/reference handy, it's easier to remember the name-codes.) The www consortium has a list of character coded in http://www.w3.org/TR/html401/sgml/entities.html.
More Info
Know more about Tips