Critical Thinking Exercise - Answers

Bookmark and Share

A few days ago I posted a "critical thinking exercise" which was designed to help you learn the type of things you should be looking for when you do a code review.

As promised here are the answers:

  1. The <html> element should specify lang="en" xml:lang="en". (WCAG - Priority 1)
  2. There are no comments documenting any of the code.
  3. CSS styles should be stored in an external style sheet.
  4. There should ideally be a separate print style sheet.
  5. The <title> tag should be more descriptive than just the company name.
  6. A <meta> description tag should be provided as this is often what search engines will display in their listing.
  7. There is no favicon image present.
  8. There is no mechanism to skip repetitive navigation elements. (Section 508)
  9. <img> alt attributes should be used properly. Tags such as "Blue Divider Line" are not useful and should be replaced with alt="".
  10. Semantic header tags should be used at all times. <p> tags with CSS classes such as "headertext" should not be used when an <h1-7> tag will work.
  11. This page has an XHTML doctype. Therefore all tags must be lowercase. <P> is not valid.
  12. This page has an XHTML doctype.  Therefore all tags must be self-closing. <br> and <img src=""> should be replaced with <br /> and <img src="" />.
  13. In the footer... adjacent links must be separated by more than just white space. (WCAG - Priority 3)
  14. Hyperlinks should be descriptive so search engines pick up on the keywords.  "Click here" links should be avoided. This is also for accessibility as some screenreaders will read the links out of context. (WCAG - Priority 2)
  15. Font sizes should be specified using relative units such as ems or percentages. Fixed sizes such as px cannot be resized by the user in many browsers. (WCAG - Priority 2)
  16. All form elements should have associated label controls.
  17. This page is for laptops but the selected class on the nav is on the printers tag
  18. "in the green box below" - Color and spatial directions are not 508 compliant because they can't be interpreted by a user with visual impairments.
  19. The word computers is misspelled as "copmuters" in the copy
  20. Flash objects should be embedded via Javascript to fix the Microsoft/Eolas problem and also provide an alternative to users without the flash plugin
  21. td.divider { padding: 8px 0 0; } - The padding attribute must contain either 1, 2, or 4 elements... 3 elements is not valid
  22. <h2>For all your PC Needs</h3> - Tag opens with h2 but closes with h3
  23. The Accessories subnav on the left is improperly nested. Nested <ul> tags must reside inside a parent <li>. I.e.:
    <ul>
         <li>Parent List Item
              <ul>
                   <li>Nested List Item</li>
              </ul>
         </li>
    </ul>
  24. No visited link color is defined. This is helpful so users can remember where they've been.
  25. Tables should be used only for the purpose of displaying tabular data and not for creating design/structure. CSS should be used instead.

Tags

//

No TrackBacks
TrackBack URL: http://www.codescene.com/cgi-bin/mt/mt-tb.cgi/47

Leave a Comment

Free the web - Boycott Internet Explorer 6