...
When you are editing in Moodle, select the 'pre-formatted styles' icon (highlighted above) to see the formatting options.
If you add a new paragraph within the editor, pressing the enter key will create a new line within the text box.
Simply select the desired style from the drop down menu or (where indicated in the menu option) first select some text to apply a style to it.
If you have added a style box from the drop down menu, pressing enter inside the Pressing enter inside a style block adds a new identically formatted style block containing no text.
If you wish to add a line break within a style block, press shift and enter together on your keyboard to add a new line.
To remove the an empty style block select no style from ''No style' from the pre-formatted styles drop-down list. This allows will allow you to enter text below the style block.In the style blocks if you wish to add a line break, shift - enter will add a new line, not a new style box.
It is possible to add an additional style block within an existing ones, just reselect one. To do this, select the text you wish to appear within a sub-style and apply the desired style.
Note: It is possible to alter the font colour of the text in a style block but please consider the contrast of text and background.
...