getButterfly Logo getButterfly

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.

Subscribe to getButterfly Blog

Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.

If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.

One thought on “Update Spree

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

Leave a Reply

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