[LON-CAPA-users] HTML version?
Guy Albertelli II
Wed, 30 May 2007 23:36:10 -0400 (EDT)
> I am playing around with trying to write css files.
> 1) Is there a discussion of this somewhere, how to implement this in
Not too much, the only thing I would point out, if you have a CSS file
you can associate it with the resource through a PARM. The css file
can even be located off the loncapa machine if you have one you are
testing and modifying.
Also I suggest getting and using the Firefox 'Web Developer' addon
It will allow you to interactively change the CSS in the browser and
to immeadiately see the effects of the changes, and help you figure
out the structure of the document.
> 2) It seems there are variations depending on whether one is using HTML
> version 3.2 or 4.x. Which one should I think I am using? How can I tell? Is
> this a function of the browser I use, or is the server involved in parsing
> the stuff?
The generated HTML from Lon-CAPA is general XHTML 1.0 compliant,
sometimes we generate bad html but any bad html is a bug let me know
and we'll get it fixed up. But ofcourse if you generate your own HTML
in your problems you'll need to be compliant in your html itself I
suggest XHTML 1.0, but HTML 4.0 should work okay for the most
part. (As long as at least you close all of the tags)
CSS comes in its on versions itself, 1.0 and 2.1 are somewhat widely
supported, but it's _higly_ browser-dependant what does or does not
work. IE 6 is particualrly poor in it's support for anything beyond
the most basic CSS.