[LON-CAPA-users] HTML version?

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Wed, 30 May 2007 23:36:10 -0400 (EDT)


Hi Brewm

> I am playing around with trying to write css files.
> 
> 1) Is there a discussion of this somewhere, how to implement this in
> LonCapa?

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
http://chrispederick.com/work/web-developer/

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.


-- 
guy@albertelli.com   0-7-0-9-27,137