Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- quotes in class/id names
December 18, 2007, 3:47 pm
rate this thread
- Harlan Messinger
December 18, 2007, 4:04 pm
Re: quotes in class/id names
In XHTML, yes. In HTML, not if the name consists of only letters,
digits, underscores, hyphens, periods, and colons.
But it's still good practice to use them. It makes your code more
readable, because inconsistency makes code more difficult to read. You
*will* need quotes, for example, for URLs that contain slashes, text
field values that include spaces, and so forth. It also makes the code
easier to write: you don't have to keep thinking, for each attribute,
"Wait, can I get by without quotes on this one?" It's more flexible
because, for example, you can use multiple classes as in
class="thisclass thatclass" without making them a special case.
Besides, why would you want to omit them?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum