Lecture

p Tag

The <p> tag is used to insert text-based paragraphs into a web page.

Here are the main features of the p tag:

  1. Automatic Line Breaks: If the paragraph's length exceeds the browser's width, the text will automatically break into the next line.

  2. No Nesting Allowed: You cannot include other elements (e.g., another <p> tag, <div>, etc.) within a <p> tag. Only text should be included within a <p> tag.

You can use the p tag as shown below.

p Tag
<p>First paragraph</p> <p>Second paragraph</p>

Follow the highlighted parts of the code to practice.

Mission
0 / 1

What is one of the main characteristics of the

tag?

You can nest other

tags within it.

It can vertically align paragraphs.

It has an automatic line-break feature.

It can change text styles.

Lecture

AI Tutor

Design

Upload

Notes

Favorites

Help

HTML
CSS
Loading...