Posts tagged "semantic markup"
Toward Better Buttons
I see this a lot:
<input type="submit" class="button" value="Save Changes" />Because the <input /> element can represent many things other than a button—and because many browsers still don't support attribute selectors, such as input[type=button]—the author has added class="button" for the sole purpose of giving the stylesheet something to match on.
May I suggest a better way?