Advertisement
Advertisement
-
Re: New to XHTML
Sat, March 7, 2009 - 9:23 AMRun kicking and screaming back to HTML 4.01
Actually, its a short run, xhtml 1 is basically html 4.01 anyway so its a fairly easy transition
always close non-empty tags, always close empty tags with /> instead of >, make sure you declare a doctype, never use the font tag, use xhtml strict and your basically forced to use css as some would say "properly", quote your attribute values, and elements are case sensitive so fix yourself to do all lower case
and run your pages through validator.w3.org/ constantly
oh, and wear a foil hat when your writing it, it'll keep you from pulling your hair out -
-
Re: New to XHTML
Sun, March 8, 2009 - 1:53 PM'oh, and wear a foil hat when your writing it, it'll keep you from pulling your hair out '
lol
also stay in lower case. I'll re-stress Daniel's point about not using the font tag and closing everything with a />. Even if there is technically no closing tag, use the /> at the end, e.g. <br /> and <img src='image.jpg' alt='logo' />. WHilst you're at it, always fill in the alternate text on images for loads of reasons like if the image doens't load then some text will, for accessibility, SEO etc
Seeing as how you're going there, you may as well learn to design css driven layouts if you don't know how to already. It's really easy when you get your head around it!
Good luck!
-
Re: New to XHTML
Tue, March 10, 2009 - 8:35 PMYou mean the tin foil hat doesn't keep out BIOS waves that causes cancer? Those lairs!!!
:P
Thanks for the tips and tricks
-