Skip to main content
Practice

p Tag

The <p> tag creates a paragraph of text.

Example of using the p tag
<p>Hello!</p>

In the code above, the <p> tag displays the paragraph "Hello!" on the screen.


Try entering a paragraph introducing yourself using the p tag as shown below.

Example of using the p tag
<div class="content-text">
<h2>I'm {Name}</h2>
<p>Enter paragraph text here</p>
</div>

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.