New to XHTML

topic posted Fri, March 6, 2009 - 5:44 PM by  Sierra
Share/Save/Bookmark
Advertisement
Learning and looking forward to tips, tricks and advice
posted by:
Sierra
Los Angeles
Advertisement
Advertisement
  • Re: New to XHTML

    Sat, March 7, 2009 - 9:23 AM
    Run 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!

Recent topics in "HTML Coding"

Topic Author Replies Last Post
Favicon Replacement Jim 1 November 27, 2009
Im in the wrong tribe Hjiørst 1 October 12, 2009
Form not working Ariana 2 February 25, 2009
wtf?? what did i mess up? Unsubscribed 8 January 24, 2009
Inconsistent Padding? Ariana 6 January 15, 2009