Skip to main content

Adding Resources

1. Add a book

1.3. Add a table into a Moodle book page

You can add an html table into a Moodle book page. Providing a table as an html table rather than an image of a table, which is not screen readable, is much more accessible for those who use screen reader software and is often better for everyone than an image of a table, which might not be very good definition.
Please note: it is good accessibility practice to add a caption to a table and to use the appropriate content tags for headings, paragraphs and lists within tables. This helps screen reader software.

Add a table:

  1. Turn editing on
  2. Switch to HTML view
  3. Add the html code for a table in the position where you want the table to appear in your book page

Standard table of one row and one column

<table width="100%" border="1">

    <tbody>

        <tr>

            <td width="" valign="top">

                <p>Text here</p>

            </td>

        </tr>

    </tbody>

</table>


Text here


Standard table of two rows and two columns

<table width="100%" border="1">

    <tbody>

        <tr>

            <td width="" valign="top">

                <p>Text here</p>

            </td>

            <td width="" valign="top">

                <p>Text here</p>

            </td>

        </tr>

        <tr>

            <td width="" valign="top">

                <p>Text here</p>

            </td>

            <td width="" valign="top">

                <p>Text here</p>

            </td>

        </tr>

    </tbody>

</table>


Text here

Text here

Text here

Text here


Standard table with colour background

<table width="100%" border="1" style="background-color: #d9e2f3">

    <tbody>

        <tr>

            <td width="" valign="top">

                <p>Text here</p>

            </td>

        </tr>

    </tbody>

</table>


Text here