View Full Version : Quotes or no Quotes
thats all folks
September 8th, 2005, 11:05 AM
I've been told that using Quotes is better then not,
align="left" valign="top" or height="25" ect........
Are there benefits to either.
Cheers
Thats all folks
thats all folks
September 8th, 2005, 11:34 AM
anyone?
Ankou
September 8th, 2005, 01:19 PM
If you're working with XHTML then you have to quote your attributes. Actually the page may still validate and work, but it's a requirement of XHTML.
It's one of the first thing you hear about for differences b/n HTML and XHTML....
- XHTML elements must be properly nested
- All XHTML elements must be closed (example: HTML <br>, XHTML <br />)
- XHTML docs must be well formed
- Attribute values must be quoted
- Tags and atrributes must be lowercase
- You cannot minimize attributes (so no <option selected> .. it has to be <option selected="selected">
- "id" attribute replaces "name" attribute
and so on....
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.