Skip to Page Content | Navigation for Module


Navigation for Module 9: HTML
Page 8 of 16

Lab: Textual Elements in HTML

Estimated Time for Completion: 15 minutes

Prerequisite Knowledge:

To gain the most from this lab, you should have familiarity with:

Files:

For this lab, you will need:

Getting Started:

The process for converting non-compliant HTML textual elements into accessible HTML involves the following steps:

  1. Define an external style sheet into which you will place all font information. For this example, CSSToStart.css.
  2. Remove the font, color, size, etc., elements from the HTML document, transferring the preferences and styles into the style sheet. For this example, use PageToCorrect.htm
    1. Make CSS styles for all formatting that you applied to common tags like "p", "h1", etc.
    2. Create new styles in the ".css" file, replacing/removing any deprecated "font" tags in the document
    3. Add the "div" tags into the HTML document so that the original styles are preserved
  3. Correct any structural problems or misuse of header ("h1", "h2", etc.) tags. Doing this assures that your document flows better and that you are not using header tags for font purposes.
  4. Correct any misuse of "b", "i", "q" and "blockquote" tags into "em", "strong" and style tags respectively.
  5. Provide full descriptions of any abbreviations and acronyms.
  6. Save your work and open your newly-created webpage in a web browser.
    Note: In the code samples and visual sample that follow the filenames and descriptions are most likely different than yours.

Review of Final Product

When displayed in a Web browser, your corrected webpage of "PageToCorrect.htm" in this lab should look similar to the following sample of a properly-webpage that is accessible to all users, PageSoution.htm ( HTML file, 3 KB).

Your corrected "CSSToStart.css" file should look similar to the following sample of a properly-formatted cascading style sheet, CSSsolution.css ( Text file, 1 KB).

The next page presents information on form structure in HTML.

Top of Page arrow up
       Page 8


 
-- END OF PAGE