Skip to main content
UNSW Sydney Logo
Teaching
Mobile search
mobile nav menu button
  • About
  • Teaching
    • New to teaching
    • Educational design
    • Assessment and feedback
    • Evaluating education
    • More...
  • Educational Technology
    • Support
    • Training
    • TELT Administrator
  • Events & News
    • Upcoming events
    • Recent news
    • Event recordings & resources
    • Subscribe to education news
  • Awards
    • Awards
    • Fellowships
    • Gathering evidence of your teaching practice
  • Professional Development
    • Beginning to Teach (BTT)
    • Teaching Accelerator Program
    • Foundations of L&T (FULT)
    • Course Design Institute (CDI)
    • Self-paced learning
    • Academic Mentoring
    • More...
  • Contact & Support
  • About
  • Teaching
      1. New to teaching
      2. Educational design
      3. Assessment and feedback
      4. Evaluating education
      5. More...
  • Educational Technology
      1. Support
      2. Training
      3. TELT Administrator
  • Events & News
      1. Upcoming events
      2. Recent news
      3. Event recordings & resources
      4. Subscribe to education news
  • Awards
      1. Awards
      2. Fellowships
      3. Gathering evidence of your teaching practice
  • Professional Development
      1. Beginning to Teach (BTT)
      2. Teaching Accelerator Program
      3. Foundations of L&T (FULT)
      4. Course Design Institute (CDI)
      5. Self-paced learning
      6. Academic Mentoring
      7. More...
  • Contact & Support

Breadcrumb

  1. Teaching
  2. Technologies
  3. Educational Technology
  4. Moodle
  5. Build Courses in Moodle
  6. Build Your Moodle Course
  7. Adding Course Content

Create a Table inside the Moodle Text Editor

Overview

Sometimes you'll want to present data in your course in table format. This page provides guidance on how to create a table within the Moodle text editor box.

Only use tables for tabular data, not to format content, such as placing images beside blocks of text. Screen readers for the vision-impaired indicate the presence of a table by reading the table as tabular data; this will be nonsensical if images are placed there.

When to use

Tables are useful for presenting columns of figures, definitions of terms and other data. Do not, however, use tables to organise and stabilise the display of your content, as this will disadvantage any students who will use screen readers to access the course material.

Benefits

Tables ensure that tabular data is positioned properly in columns and rows.

Guide

Step by step instructions

  • Create a table
  • Define table headers
  • Add borders to a table

Create a table

  1. In the text editor, click the Insert/edit table icon The inserts a table icon. (If the function icons and buttons don't display, click Show editing tools at the top of the editor.)

  1. In the Insert/edit table window:
    • Enter the number of columns (Cols) and Rows you want the table to have.
    • Add an outside table Border (pixel width) if you wish, and click Insert.

The attributes Cell padding (adding space around text within cells), Cellspacing (increasing the amount of space between cell borders and the table border), Alignment and Width, and (on the Advanced  page) Background Color, are not supported in the newest version of HTML (HTML 5). In newer browser versions your tables may not reflect any settings you create using these fields. We advise you not to use these settings.

It is particularly unwise to enter a Width setting. Because end users will view Moodle pages in an immense range of browsers and devices, ranging from text-only mobile browsers to large-screen, high definition displays, defining pixel-based sizing for anything other than the table border is very limiting.

Let the browser window determine the width of the table whenever possible, to reduce the horizontal scrolling required of those with low vision. If you must define cell widths or table widths, use relative values such as percentages, rather than pixel values. Avoid defining cell heights, or the cell will not be able to expand downward to accommodate its content, which will frustrate users with low vision who may enlarge text content.
  1. In the editing page, enter and format the table text.

  1. To return to the Insert/edit table window for this table, right-click the table and select Table properties from the screen menu.

  1. To save changes to your table and the other text, click Save changes. 

Define table headers

It’s important to define table headers so that screen readers will identify header cells, as opposed to data cells, for visually impaired users.

  1. Right click on a table cell you want as a header, right click on the cell to view the screen menu and select Cell > Table cell properties.

  1. In the Table cell properties > General window, make any desired change to the header Alignment within the cell—by default, header text is centred and in bold type.
  2. In the Cell type drop-down list, select Header.
  3. At Vertical alignment, select whether you want the header to display at the Top, Center or Bottom of the cell.
  4. Select the Scope of the headers—if headers are located at the left of the data cells, the scope will be Row or Row group, if placed above the data cells it will be Column or Col group.
  5. At the lower left of the window, select Update all cells in row or Update all cells in column as applicable.

  1. Click Update. The table will display with the nominated header cells differentiated.

Below is a table with 1-pixel cell borders and header cells in the first column—
header text is aligned horizontally Left and vertically Bottom.

Add borders to a table

To add an outside border to a table:

  1. Right-click the table and select Table properties from the screen menu.

  1. In the Insert/edit table > General window, in the Border field, enter a number representing the pixel width of the outside table border.
  2. Select the Advanced tab.

  1. In the Advanced window, at Border colour, click the Browse button .
  2. In the Select a colour window, select a colour from the Picker, Palette or Named page. Click Apply if necessary, to return to the General window.

  1. Click Insert to return to the editing page, to complete and save your changes.

 

To add cell borders to a table in the text editor:

  1. Right-click within the first table cell, and from the pop-up menu select Cell > Table cell properties.

  1. In the Table cell properties window, select the Advanced tab.
  2. In the Advanced window, at Border colour, click the Browse button .
  3. In the Select a colour window, select a border colour from the Picker, Palette or Named page. Click Apply if necessary, to return to the Advanced window.

  1. At the lower left of the Advanced window, select Update all cells in table from the drop-down list.
  2. Click Update to return to the editing page, to complete and save your changes.

Advanced guide

For more advanced Moodle table functions, see this helpful forum page.

Additional information

Further assistance

If you experience technical or other issues, consult the Where to get help page.

  • Educational Technology
    • Moodle
      • Login
      • Dashboard
      • Build Courses in Moodle
        • Orientation to Moodle
        • Request Course through myUNSW
        • Build Your Moodle Course
          • Course Design
          • Course Home Page
          • Adding Course Content
            • Activities
            • Resources
            • Add a Book
            • Upload a File
            • Using Blocks
            • Attendance
            • Create a Folder
            • Atto Text Editor
            • Text Editor
            • Blog
            • Copy Text from Word
            • IMS content package
            • Chat
            • Tables
            • Choice
            • Create a Lightbox Gallery
            • Legacy Course Files
            • Create a Label
            • Database
            • Images
            • Create a Web Page
            • Dialogue
            • Video
            • Add a URL
            • Feedback
            • Forum
            • Hide Resource or Activity
            • Glossary
            • Restrict access
            • Activity Completion
            • Group
            • Group Selection
            • Lesson
            • SCORM Package
            • Create a Questionnaire
            • Use the Moodle Calendar
            • Add test students
            • Survey activities
            • Course menu block
            • Create Wiki Activity
            • Scheduler activity
            • Create media gallery
            • Dropbox files
            • Course overview
            • Create a Checklist Activity
            • StudentQuiz
            • VoiceThread Instruction
          • Assessment Tools
          • Blackboard Collaborate Ultra
          • Personalized Learning Designer
          • Team Builder
        • Bring Content into your Teaching Instance
        • Facilitate and Deliver Course
        • Uploading grades to SIMS using Astra
      • Course Administration
      • Moodle Releases
      • Moodle Upgrade Project
      • Feature Requests
      • Contacts
      • Index of all support pages
    • Lecture Recording+
    • Turnitin
    • theBox
    • Other eLearning Tools
    • Feature Requests
    • Book a Consultation
    • Digital Media Support & Equipment
    • Immersive Technologies
    • TELT Service Status
    • Known System Issues
    • System Maintenance Windows

Events & news

ChatGPT & AI in our teaching
CEP Lightning Workshops T1 2023
More
Back to top
  • Print
  • Share
    • Facebook
    • Twitter
    • Google
    • Email
  • Home
  • About
  • Educational Technology
  • Events & news
  • Awards
  • Contacts

Authorised by Pro Vice-Chancellor Education
UNSW CRICOS Provider Code: 00098G, TEQSA Provider ID: PRV12055, ABN: 57 195 873 179
Teaching at UNSW, Sydney NSW 2052, Australia Telephone 9385 5989

Footer menu

  • Privacy Policy
  • Copyright & Disclaimer
  • Accessibility
  • Report an incident
  • Complaints
  • Site Map
  • Site Feedback
Page last updated: Thursday 23 November 2017