HTML Fundamentals Course: Building the Web
Sobre a Aula

Paragraphs (p)

Hello, students! In this lesson, we will learn about HTML paragraphs.

Paragraphs are HTML elements used to organize the text of a web page.

Paragraphs are identified by the <p> tag.

Topics

  • What are HTML paragraphs?
  • Code examples

What are HTML paragraphs?

Paragraphs are HTML elements used to organize the text of a web page.

They are used to divide the text into smaller units and make it easier to read.

Code examples

Here are some code examples for paragraphs:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

Note that the browser displays paragraphs as blocks of text.

Exercises

  • Create an HTML document with two paragraphs.
  • Save the document and open it in a browser.

Observe how the browser displays the paragraphs.

Good luck!

Conclusion

Paragraphs are an important tool for organizing and facilitating the reading of text on a web page.

Understanding how to use them correctly is essential for creating effective web pages.

Pro Tip

You can use the <br> element to create line breaks within a paragraph.

For example, the following code creates a paragraph with two lines:

<p>This is a paragraph with <br>two lines.</p>

The browser displays the text as follows:

This is a paragraph with
two lines.

You can use the <p> element to organize text on any web page.

Entrar na conversa
Rolar para cima