WebDev:FrontendCodeStandards: Difference between revisions

Jump to navigation Jump to search
Line 153: Line 153:
* HTML:
* HTML:
** HTML5 doctype. Safe to use for all browsers.
** HTML5 doctype. Safe to use for all browsers.
** Pages must validate. Not a strict requirement. Some layouts can't be achieved without a few errors.  
** Pages should validate. Not a strict requirement. Some layouts can't be achieved without a few errors.  
** Use most meaningful tags for content
** Use most meaningful tags for content
** 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.
975

edits

Navigation menu