WebDev:FrontendCodeStandards: Difference between revisions

Line 157: Line 157:
** Images/bg images with text in them must have alternate textual representation (alt text or text positioned offscreen for screenreaders).  Avoid these due to L10n difficulties anyway.
** Images/bg images with text in them must have alternate textual representation (alt text or text positioned offscreen for screenreaders).  Avoid these due to L10n difficulties anyway.
* CSS:
* CSS:
** No separate stylesheets for any browser and no conditional statements.
** Separate stylesheets for other browsers (IE) are ok
*** This might be necessary for some layouts. Reserved for worst case scenarios.
*** If only 1 or 2 properties are changed, keeping them in the original stylesheet is ok
** For new sites, look into YUI Fonts & Reset, this will reduce browser layout differences
** For new sites, look into YUI Fonts & Reset, this will reduce browser layout differences
** Semantic classnames
** Semantic classnames
975

edits