1. Avoid CSS Expressions
2. Avoid Filters
3. Specify units for non-zero values, but not for zero values.
4. Don’t use quotation marks around paths/URLs when setting a background image or loading in an imported file
5. Try to avoid applying padding/borders and a fixed width to an element. Rather, apply padding to the parent element.
6. Minimize number of [...]
Archive for May 27th, 2009
Best Practices of CSS
Posted in CSS, Usability on May 27, 2009 | Leave a Comment »
Best Practices of HTML
Posted in Usability on May 27, 2009 | 1 Comment »
1. Doctypes
By using a certain DOCTYPE (strict or transitional) you claim to have correctly implemented a certain (X)HTML flavor:
2.XHTML
Make all your tags lower case (<p> instead of <P>);
Close all your tags, even empty ones (<br /> and <hr /> instead of<BR> and <HR>);
Make all attribute names lower case and quote all attribute values; and onmouseover [...]