Stumped:: web HTML. Caution, may be OT.

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu May 29 07:41:06 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Gary Kline wrote:

> 	Other than beginning from Zero and trying to determine exactly
> 	what causes firefox and konq to diverge, do any of you have any
> 	other ideas?  I've never learned an HTML editors because of the
> 	learning curve.  But:: if/when I come up with a better design for
> 	my home page, I'm willing to try again:: any best (simple) HTML
> 	editors in ports?


It's  bit OT really. But wotthehell, wotthehell.  I've found the best approach
is to make liberal use of http://validator.w3.org/ -- if your HTML validates
correctly according to which ever standard you apply, and similarly if your CSS
validates correctly as CSS 2.0 then you should get a pretty similar result in
virtually all browsers.  Use HTML Tidy  (ports: www/tidy-devel) to clean up your
HTML automatically, and strongly prefer CSS over in-line formatting as tidy steers
you towards.

One thing to watch out for though is an important difference between the XHTML 1.0
standard and the HTML 4.01 standard (http://www.w3.org/MarkUp/) XHTML 1.0 is an XML
language and should be served using the 'application/xml+xhtml' MIME type, unlike
HTML 4.01 which should be served as 'text/html' (http://www.w3.org/TR/2002/NOTE-xhtml-media-types-20020801/)

I've found that this can make quite a difference to the way a page is rendered
in FireFox.  The HTML 4.01 standard is probably your best bet for maximum
interoperability with all sorts of different desktop browsers, whereas XHTML is better
if you need access by stuff like Mobile Phones or text-to-speech systems for the
blind.

	Cheers,

	Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkg+XgQACgkQ3jDkPpsZ+VanhwCfYBTlfL0r6Jz1iwaq7RYgfKde
sYsAoKO8lsylmdCPMMcF4JRk93fJ675h
=khay
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list