submit to reddit

  • Sharebar

vintage-poster

I have been updating some of my web sites, trying to make them validate as XHTML Strict. What I’ve learned from this routine work?

1. Do not insert a <div> tag into a <p> tag. It won’t validate. Try a <span>.
2. Use <p> or <div> to surround <input>, <select> and <textarea> tags.
3. Use <label>, more for accessibility than validation.

One Response to Update Spree

  • I am a beginner in HTML so these would b nice tips for me, Thank you :)

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>