Skip to main content

Text

Moodle text utility classes

Heading sizes with native heading tags

h1 heading

h2 heading

h3 heading

h4 heading

h5 heading
h6 heading
<h1>h1 heading</h1>
<h2>h2 heading</h2>
<h3>h3 heading</h3>
<h4>h4 heading</h4>
<h5>h5 heading</h5>
<h6>h6 heading</h6>

Heading sizes with heading classes

tip: you can use heading classes to style a native heading tag differently.

h1 heading

h2 heading

h3 heading

h4 heading

h5 heading

h6 heading

<p class="h1">h1 heading</p>
<p class="h2">h2 heading</p>
<h1 class="h3">h3 heading</h1>
<p class="h4">h4 heading</p>
<p class="h5">h5 heading</p>
<p class="h6">h6 heading</p>

Native text tags

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.

<p>You can use the mark tag to <mark>highlight</mark> text.</p>
<p><del>This line of text is meant to be treated as deleted text.</del></p>
<p><s>This line of text is meant to be treated as no longer accurate.</s></p>
<p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
<p><u>This line of text will render as underlined</u></p>
<p><small>This line of text is meant to be treated as fine print.</small></p>
<p><strong>This line rendered as bold text.</strong></p>
<p><em>This line rendered as italicized text.</em></p>

Custom text tags

Lowercased text.

Uppercased text.

Bold text.

Normal weight text.

Italic text.

Muted text with a reset link.

<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="font-weight-bold">Bold text.</p>
<p class="font-weight-normal">Normal weight text.</p>
<p class="font-italic">Italic text.</p>

<p class="text-muted">
  	Muted text with a <a href="#" class="text-reset">reset link</a>.
</p>

For screenreaders

Title for screen readers

Skip to main content

Text truncation

Praeterea iter est quasdam res quas ex communi.
Praeterea iter est quasdam res quas ex communi.