Sonzaschool
Back

O-Level · Form 2 · Vocational · Electronics and Computer

Computer Programming

Creating data tables and forms using HTML

about 3 minutes to read

Discussions
Topics in this sectionCreating web pages using HTML4 topics

HTML tables and forms are used to organise information on web pages. Tables display data in rows and columns, while forms let users enter and submit information.

Tables are created using three main tags:

  • <table> – starts and ends the table
  • <tr> – defines a table row
  • <td> – defines a table cell (data inside a column)
  • <th> – defines a table header (bold and centered by default)

Basic Table Structure

<table>
    <tr>
        <th>Header 1</th>
        <th>Header 2</th>
    </tr>
    <tr>
        <td>Data 1</td>
        <td>Data 2</td>
    </tr>
</table>

The border attribute adds a visible border:

<table border="1">

How you'll be assessedProcess assessment · Outcome assessment · Knowledge assessment

Process assessment

  • Set up table structure using , ,
    .
  • Add form elements (,
  • Set form attributes (action, method).
  • Save and preview the table and form in a browser.
  • Troubleshoot display issues.

Outcome assessment

Tables and forms that use HTML to display data correctly are created.

Knowledge assessment

Detailed knowledge of:

Method used: The student should explain how to:

  • Create HTML Tables
  • Create HTML forms

Principles: The student should explain the principle of why and when to use HTML tables and forms

Theories: The student should explain:

  • The concepts of HTML tables
  • The concepts of HTML forms.
  • Structure of tables and form elements.

Circumstantial knowledge:

Detailed knowledge about: - form attributes (e.g., action, method).

Question

What HTML tag is used to define a table row?

Sign in to submit your answer and have it count toward your mastery.

Sign in to practice

Tutor

Stuck? Ask me anything about this topic.

Sign in to ask the Sonza AI Tutor about this question.

Sign in to ask

Discussions

No questions yet

Sign in to ask
Loading discussions…