How to write paragraph in HTML?
How to write paragraph in HTML?
I just wanted to know how to write paragraphs in html.
Agastya Selected answer as best April 21, 2023
In HTML, you can use the <p>
tag to create a paragraph of text. Here’s an example:
<p>This is a paragraph of text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac magna vel mauris convallis gravida sed nec libero. Integer venenatis quam non nisl vestibulum, sit amet congue dolor feugiat. Nam eget nibh nibh.</p>
In this example, the text under <p>
and </p>
will be displayed as a single paragraph on the web page.
You can add as many paragraphs as you need by repeating the <p>
tag with different text in between. Remember to close each <p>
tag with a closing </p>
tag.
Agastya Selected answer as best April 21, 2023