Tables 1 (Moodle default)

NoteThe default Moodle table displays without borders or stripes (it's not pretty in other words), it is recommended that after adding a table you add a table style, see the bottom of this entry for options. 

To insert a default table in a label

  • Add or Edit an existing text and media area.
  • Click the insert table icon in the label's text editor toolbar. A pop up window will open.
  • Insert the number of columns and rows you want, and click Create.
  • To add text to the table, place your cursor in a cell of the table and start typing.

  • Remember the wonderful people in the LII Team are there to help, so before you get frustrated drop us an line,

To add a plain border to your table


  • Click the HTML icon in the label's editing toolbar.
  • Find the <table> code and add class="table table-bordered" so it looks like this: <table class="table table-bordered">
  • See the code below (for a table 2 rows x 2 columns) as a whole example
  • Exit HTML code edit mode.
  • Edit the text in the table.
  • Save and return to course.
<table class="table table-bordered">
<tbody>
<tr><td>text</td><td>text</td></tr>
<tr><td>text</td><td>text</td></tr>
</tbody>
</table>

texttext
texttext

See also: 

» A-Z glossary