Text is the heart of most webpages—whether it’s a blog post, a bio, or a product description. In HTML, the way you organize that text matters, and that’s where the <p> tag shines. Short for “paragraph”, it’s the simplest way to create neat blocks of text that don’t just run together into a messy blob.
Using it is an air: wrap your text between <p> and </p>.
Like this:
When you open it in a browser, each <p> gets its location, with a slight interval above and down - courtesy of automatic formatting HTML. No more squad sentences!
Why bother with paragraph? Well, they make your page easy to read - no one likes a huge wall of words. Also, they are flexible. You can toss other tags inside them, such as </strong> for bold or for link <a>:
The browser will show “Check out this cool site!” with “this cool site” as a clickable link.
A quick heads-up: Leave the closing </p> can confuse the browser to close the tag-it, especially as your code increases. And while <p> Hands the vacancy for you, you can subdue it later with styles if you want more control. For now, just enjoy how it converts your thoughts into clean, streamlined blocks.
Try to write some paragraphs in your next HTML file - this is the fastest way to see your page in life!
Sponsored Content
Enhance your HTML skills with our in-depth tutorials and interactive quizzes.
Explore HTML Quiz