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:
- Using a text editor (such as NotePad or vi) and performing common file operations
(such as saving and copying files).
- HTML coding for text.
- Creating a cascading style sheet (CSS).
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:
- Define an external style sheet into which you will place all font information.
For this example, CSSToStart.css.
- 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
- Make CSS styles for all formatting that you applied to common tags like
"p", "h1", etc.
- Create new styles in the ".css" file, replacing/removing any
deprecated "font" tags in the document
- Add the "div" tags into the HTML document so that the original
styles are preserved
- 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.
- Correct any misuse of "b", "i", "q" and "blockquote"
tags into "em", "strong" and style tags respectively.
- Provide full descriptions of any abbreviations and acronyms.
- 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
(
,
3 KB).
Your corrected "CSSToStart.css" file should look similar to the following
sample of a properly-formatted cascading style sheet, CSSsolution.css (
,
1 KB).
The next page presents information on form structure in HTML.