🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Web & Software Development › HTML, CSS, and JavaScript for Web Development › Lesson 3
TEC-WEB46-02 · Lesson 3 · 14 clock hours · lab

HTML Text, Links, Images, Tables, and Forms

Objective. Students mark up text content, hyperlinks with relative and absolute paths, images with descriptive alt text, data tables with proper thead/tbody/th scope, and accessible HTML forms with labels and input types.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

HTML Text Content

HTML (HyperText Markup Language) is the skeleton of every web page. You use elements — opening tags, content, and closing tags — to describe what each piece of content is, not how it looks. Browsers and assistive technologies rely on that meaning.

Headings (`<h1>` through `<h6>`) create a document outline. Use one `<h1>` per page for the main topic, then nest lower headings in order. Do not skip levels just to get a certain size — use CSS for styling instead. Paragraphs use `<p>`. Inline emphasis uses `<strong>` (strong importance) and `<em>` (stress emphasis).

Lists come in two forms. An ordered list (`<ol>`) implies sequence — steps in a process. An unordered list (`<ul>`) groups items without a required order. Each item in either type is wrapped in `<li>`.

Hyperlinks

The anchor element `<a>` creates a hyperlink. Its `href` attribute holds the destination.

Always write link text that describes the destination. "Click here" is meaningless out of context; "View our service list" is not.

Images

The `<img>` element is a void element (no closing tag). Its required attributes are `src` (file path) and `alt` (alternative text).

Alt text serves two purposes: it is read aloud by screen readers for users who cannot see the image, and it displays when the image fails to load. Write alt text that conveys the image's purpose in context. A photo of a technician at a workstation might get `alt="Technician connecting fiber-optic cables in a server rack"`. If the image is purely decorative (a colored divider line), use an empty alt attribute: `alt=""` — this tells assistive technology to skip it entirely. Never omit the `alt` attribute altogether; that forces a screen reader to announce the file name instead.

Data Tables

HTMLtables are for tabular data — information that has a meaningful row-and-column relationship. Never use tables just to create a visual layout.

A well-structured table includes:

The `scope` attribute is the primary accessibility mechanism for tables. Without it, a screen reader user navigating cell by cell cannot know which column or row a cell belongs to.

Accessible HTML Forms

Forms collect user input. Every input must have an associated `<label>`. The connection is made with matching `for` and `id` attributes:

```html

<label for="email">Email address</label>

<input type="email" id="email" name="email" required>

```

Common input types and when to use them:

| Type | Use case |

|---|---|

| `text` | General short text |

| `email` | Email address (browser validates format) |

| `tel` | Phone number |

| `textarea` | Multi-line message |

| `select` / `option` | Choosing from a fixed list |

| `checkbox` | Binary yes/no or multiple selections |

| `submit` | Form submission button |

Using the correct `type` triggers the right keyboard on mobile, enables browser validation, and communicates purpose to assistive technology.

Tab-order navigation: by default, browsers move keyboard focus through interactive elements in source order when the user presses Tab. Test every form with keyboard only — no mouse — before submitting work. Every field must be reachable and usable without a pointing device. This is a WCAG 2.1 success criterion and a practical accessibility baseline.

Validation and Safety

Run your finished HTML through the W3C Markup Validation Service (validator.w3.org). Validation catches unclosed tags, duplicate IDs, missing required attributes, and other errors that may render differently across browsers or break assistive technology.

Digital workspace safety: Keep cables managed at your station to prevent trip hazards. Position your monitor at eye level and maintain a neutral wrist posture to prevent repetitive strain. Take brief breaks every hour — sustained focus on a screen without breaks contributes to eye strain and musculoskeletal fatigue, both recognized ergonomic hazards in computer-based trades.

Key terms8

Alt textThe value of the alt attribute on an <img> element; it describes the image for screen readers and displays when the image cannot load.
Absolute pathA URL that includes the full scheme, domain, and path, such as https://example.com/page.html; used for links to external sites.
Relative pathA file path expressed relative to the current document's location, such as ../css/style.css; used for resources within the same project.
scope attributeAn attribute on <th> elements that declares whether the header applies to its column (scope="col") or its row (scope="row"), enabling screen readers to associate data cells with their headers.
Label elementAn HTML element that provides a visible, programmatic name for a form control; connected to its control via matching for and id attributes.
Internal anchorA hyperlink whose href value begins with # followed by the id of an element on the same page, allowing navigation within a single document.
WCAG 2.1Web Content Accessibility Guidelines version 2.1, published by the W3C; the widely adopted standard defining how web content should be made accessible to people with disabilities.
Void elementAn HTML element that has no content and no closing tag, such as <img>, <input>, and <br>.
In class: Guided lab: students build a multi-section HTML-only information page for a fictional business that includes headings, paragraphs, an ordered list, an unordered list, an external link, an internal anchor, and at least two images with meaningful alt text. · Table construction drill: students convert a provided CSV dataset into a correctly structured HTML table with a caption, column headers using scope='col', and at least one row header using scope='row'. · Form-building challenge: students independently construct a contact form with text, email, telephone, textarea, select, checkbox, and submit inputs — all with associated label elements — then test tab-order navigation using keyboard only.
Materials: VS Code, Live Server, MDN HTML forms guide, MDN table accessibility guide, WCAG 2.1 quick reference (w3.org/WAI), provided CSV dataset
Check: Peer review using a shared rubric covering alt text presence, label-input association, table scope attributes, correct relative vs. absolute linking, and W3C validation pass; instructor confirms peer scores; pass mark 75%.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Web development fundamentals / HTML semantics
1. A developer places two <h1> elements on a single web page — one for the site name and one for the main article title. What is the primary problem with this approach?
Web development fundamentals / file paths
2. Which href value correctly links from a file at /project/pages/about.html to an image located at /project/images/logo.png using a relative path?
Web accessibility / HTML tables
3. A data table lists monthly sales figures. The first column contains month names. What scope value should the <th> elements in that first column use?
Web accessibility / HTML forms
4. A developer codes the following: <input type="email" id="userEmail">. What additional markup is required to make this input accessible?
Web accessibility / images
5. An image on a web page is a thin decorative horizontal rule used only to separate sections visually. Which alt attribute value is most appropriate?
Web accessibility / HTML tables
6. Which HTML element provides a visible, accessible title for a data table and must appear immediately after the opening <table> tag?
Web accessibility / forms
7. A student finishes building a contact form and wants to confirm it is keyboard accessible. What is the correct testing method?
Web development fundamentals / quality assurance
8. What is the primary purpose of running finished HTML through the W3C Markup Validation Service?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.