Lorem ipsum text


Intro

There’s another shortcut we can use to create a full paragraph of text.

Steps

Create text

First, make sure your cursor is in the middle of the p tags.

Then, type lorem, and then press Tab.

If you check the preview, you should see a new paragraph appear.

Explanation

There are a couple of things I’d like to point out.

First, the shortcut created a full paragraph of text, but you’ll notice the text isn’t in English. This text is called lorem ipsum text, and you can think of it as a fake version of Latin. It’s designed to act as placeholder text when you’re designing or first creating a web page.

For example, if you’re trying to get feedback on the layout or structure of a web page and don’t want people to focus on the content, you can use lorem ipsum text as a placeholder. You can always change it later once you have the text you actually want to put on the web page.

I’ll use the lorem shortcut in this course whenever I need to quickly create a full paragraph of text.

Block elements

The second thing I want to point out is, notice in the preview that each paragraph element starts on a new line. This is because paragraph elements are considered block elements. This means that each element you add, by default, will start on a new line.

This behavior can be changed with CSS, but this is what it looks like by default, so what we’re seeing is correct.

Final code

If you’ve followed all of the steps so far, this is the code that should be in between the body tags.

Complete and Continue