Paragraphs

Paragraphs are undoubtedly the most commonly used text HTML element. A block of text on Wikipedia? A paragraph. A block of text in news articles? A paragraph. This text? A paragraph.

Simply put, when we need to write a larger amount of text, we generally use paragraphs. We create them with the p element (p stands for paragraph), which you already met in the previous lesson:

<p>I am a paragraph</p>

For clarity, we will remove the document type declaration, the html element and the head element from the editor, as we will not be working with them for now. From now on, the editor shows only the body element. However, remember that the rest is still there in the background to ensure your page is displayed correctly.

You don't have to retype the long sentences from the instructions. Just copy them.

Instructions

Below the h2 element with the text Description, create a p element with the text: The domestic cat is a domesticated form of the wildcat, which has been a companion to humans for thousands of years. Like its wild relative, it belongs to the subfamily of small cats.

Below the h2 element with the text Physiology, create a p element with the text: It is a crepuscular animal and is naturally most active in the evening and early morning hours. It sleeps for 12-16 hours a day, with the slender, oriental type being more active than the stocky types.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

2/8