Forum Moderators: open
I do recall that I had one (just one) Netscape 4 glitch that I could only fix by putting back one set of quotes. Sorry that I can't recall the specific details on that one.
IE is very forgiving and will tolerate a lot of errors and slobby coding. You might not find the SE’s as forgiving and I wouldn’t be surprised at all, if some SE’s take slobby coding as a sign of unprofessionallism and downgrade your ranking as a result.
I wouldn’t be surprised at all, if some SE’s take slobby coding as a sign of unprofessionallism and downgrade your ranking as a result.
FUD (Fear, Uncertainty, Doubt).
I can't believe that an SE would choke because of missing quotes. If their parsing were that rudimentary, they would just be looking for the end of the tag and wouldn't know about attributes at all.
The only reason SEs would take into account the "professionalism" of a site would be because the SE's designers believed that W3C goupies (which I am, so don't get riled) had a monopoly on useful content. In fact, I would say the people most likely to have real expertise on a given non-computing topic are least likely to be W3C groupies. They are hobbyists, fanatics, academics, archivists, consultants etc etc, and don't have the budget to hire someone unless they are selling something (and therefore are not primarily informational sites). Spelling errors might hurt because you won't get indexed for that term, but the poster is not asking about sloppiness, but systematic and careful non-observance of a specific recommendation.
Personally, I always try to validate my pages to XHTML and therefore use quotes (though I do try to get rid of tab/space indentation, unnecessary whitespace and so on).
That said, I don't think there is a browser out there that will have a problem unless you have unmatched quotes (obviously) or you serve up your pages with an xml mime type. Then you're hosed.
The brief version of this rant is
- you're probably fine
- I would spend the extra 200bytes to have a validating site.
Tom
In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them.
You might not find the SE’s as forgiving and I wouldn’t be surprised at all, if some SE’s take slobby coding as a sign of unprofessionallism and downgrade your ranking as a result.
Bull. Simply untrue and not bloody likely. Even txt files with no formatting at all get indexed. Search engines simply don't and never will care. To do otherwise would be assinine.
All these works fine. I red w3c racom. It discusses SGML relationship to HTML, at the time it was written (?).
I focus this quteless topic in two dir: interpreter and Googlebot (the only one I care). If quoteless is no problem to a browsers, remains to test on Google.
But let me deducte some logic. Browser interpret an web content. This web content is also 'delivered' by Google too. I don't believe that browsers would interpret correctly something that in its basic would non be indexed becouse of that same 'errors' that browsers pass over. I appoligize for my bannana english, btw. That lead us to think that these two main 'tools' would use different standards for an very sensitive issue, I think. I don't believe in this.
All atributes on my pages are quoteless, except metas and some js. I repeat, I'd like to test them as they are now.
<a href=javascript:warp()>
<img src=../img/some.jpg>
<a href=# onMouseOver=changeimage(myimages[0],this.href)>
I'd DEFINATELY put quotes in all of those. I don't care if it happens to slip through with one browser or SE. I'd always use them for anything non-alphabetical (ie #, /, %, brackets...)
If you ask me it even looks confusing and ugly too! And remember that the tags and attributes might even not display in the right colors in a source viewer...
Since xhtml is the "next level" (well, okay - until something else comes along....), one should do one's best to code necessary html as close to that standard as possible. It's not particularly smart to defy the current logistical parameters just because one thinks it's more "esthetically pleasing"....
Basically I agree and I try to follow standards to the greatest possible degree. My pages are almost always XHTML strict. However very often the highest performance is achieved through ignoring specs/standards and breaking rules. Reliability goes down, but performance goes up. That's true for tweaking a car engine, that's true for overclocking processors, that's true for mountaineering at high level.
I think the original poster is intent on maximizing performance provided the hit in reliability isn't too great. That's his choice. I wouldn't do it, but I don't think it's as black and white as you suggest.
The important thing is to be aware that you are ignoring a spec, why you're ignoring it and what the benefits and pitfalls are. Then it's your decision. In this case I think it's a bad decision because the payoff is so low. However, blindly following standards because they exist can also be bad.
Tom
The reason I ask is this. If you put an extra five minutes into optimizing a graphic, you can easily shave off an extra KB. Personally, I would leave my attribute values quoted and I would spend the extra five minutes on optimizing the graphics. If you're using phpBB, and some of the other things you mentioned, you have some obvious sources of major code bloat. A few extra quotation characters pale in comparison. It is perhaps the last thing I would focus on if I were trying to shave every possible byte.
Tom
I have focused on G as a major SE, and latest browsers to see if quotes are mandatory or optional. I think this is the point, not personal preferences about estetics in tags.
It is not a matter of aesthetics.
The w3c standards tell us that quotes are MANDATORY on all attributes that contain non-alphanumeric data in HTML4.
Those are the standards.
Some validators recomand it becouse of w3c racoms. (do we need a selective racoms?)
Yup - thats because without them your code is not valid and a validators job is to tell you whether your code is valid or not.