The HTML spec shows the disabled and checked attributes for input elements like this:
<INPUT disabled name="fred">
Whereas w3schools suggests doing it like this:
<input disabled="disabled" name="fred" />
Is there some reason to prefer one style over the other or is it just personal preference? I can’t decide which I find more “readable,” the simpler one or the one that’s name/value pair like the other attributes.
The w3schools example is XHTML compliant. Can’t say if that is the intent in writing their content that way, but that is one difference between the two, so if you are comparing w3schools XHTML oriented content to the HTML 4 spec, it makes sense.
Err, after finishing the question and seeing what you were asking, I would say use the HTML version if you don’t want/need XHTML compliance, use the latter if you do… or if it doesn’t matter for your purposes use whichever you prefer but be consistent.