Tutorials References Exercises Videos Menu
Free Website Get Certified Pro

lorem Template Tag


Example

Insert 50 words of random text:

<!DOCTYPE html>
<html>
<body>

{% lorem 50 w %}

</body>
</html>
Run Example »

Definition and Usage

The lorem tag inserts a specified amount of random text.

The "random" text is the famous "Lorum ipsum" text, in lower case letters.

Example

Insert 5 paragraphs of random text:

<!DOCTYPE html>
<html>
<body>

{% lorem 5 p %}

</body>
</html>
Run Example »

Syntax

{% lorem count method random %}

Parameters

Value Description
count Optional. The number of words, or paragraphs to display. Default 1.
method Optional. Specifies whether to display blocks, words or HTML paragraphs.
b for blocks of text
p for HTML paragraphs
w for words
Default b
random Optional. If specified, the random text start at a random word of the "lorum ipsum" text