Note: You are currently viewing documentation for Moodle 2.4. Up-to-date documentation for the latest stable version of Moodle may be available here: HTML block.

HTML block

From MoodleDocs

A HTML block is a standard block used to add text or images on a site or course page. The title bar can be left blank.

Htmlblockexample.png

The block is flexible and can incorporate a variety of functions and uses in the content area. It has the standard Moodle Text editor for formatting text, adding images or creating links, switching to code view and allows any valid HTML markup to be used. This enables embedding video, sounds, Flash, and other files which can add unique elements to a course or site page.

Site administration settings

New feature
in Moodle 2.4!

An administrator can, from Settings>Site administration>Plugins>Blocks>HTML, enable or disable the ability to allow additional CSS classes to be set in indidvual block instances. If it is enabled, a field appears at the bottom of the block:


additionalcssclasses.png

If additional CSS classes have been added and the setting is then disabled, the form settings are saved in the database and will reappear if this is re-enabled.