I would be grateful for advice on a small problem with "Learning J".
The HTML is set up to display the J code
in the examples in blue, for a better appearance.
This used to work, until recently. The problem is that I haven't changed
anything in the HTML but the J code now displays in black.
My guess is that my browsers have updated themselves, both IE and Firefox,
so that what used to work is now invalid somehow.
I have made a very small example and validated it with the W3C HTML
validation service and also
the CSS validation service. It is reported as error free, but it
demonstrates
that in my embedded style sheet,
the font-size attribute is effective, but the color attribute is not.
This is demonstrated at
http://www.rogerstokes.free-online.co.uk/test/example.htm
The HTML source is as below. Any advice would be much appreciated.
Regards,
Roger
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
charset=ISO-8859-1">
<TITLE>example</TITLE>
<STYLE TYPE="text/css">
TT {font-size: 18pt; color: BLUE}
PRE {font-size: 18pt; color: BLUE}
</STYLE>
</HEAD>
<BODY BGCOLOR=WHITE>
<P> this is ordinary text
<P> <TT> NB. this should be large and blue </TT>
<P> <PRE> NB. so should this </PRE>
</BODY> </HTML>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm