Full Stack Developer Masters Program (53 Blogs) Become a Certified Professional
AWS Global Infrastructure

Programming & Frameworks

Topics Covered
  • C Programming and Data Structures (16 Blogs)
  • Comprehensive Java Course (4 Blogs)
  • Java/J2EE and SOA (346 Blogs)
  • Spring Framework (8 Blogs)

All you need to Know about p tag in HTML

Published on Aug 21,2019 609 Views

The <p> tag will help to structure your content into the next paragraphs. Each paragraph of the content should be given in between the opening <p> and closing <p> tag as given down in this article on P tag in HTML.

Specific Attributes pf P tag in HTML

In HTML <p> tag also supports the following additional attributes mentioned below in the table.






This specifies the content alignment within the paragraph.

Basically, the p tag in HTML defines the paragraph of the content. Let’s have a look at an example of p tag in HTML

<!DOCTYPE html>
			<title> Example for Paragraph </title>
			<p>This is the first paragraph of the content given here.</p>
			<p>This is the second paragraph of the content given here.</p>
			<p>This is the third paragraph of the content given here.</p>


p tag in html


The above-mentioned code represents the <p> tag for which it is used in all kind of differentiating the paragraphs. In HTML these tags are used accordingly and is a user-friendly and it help’s the user to get their web page as their wish. We can alter the code and get it done as per our requirements.

Further can be added to the other tags and make your web page more attractive. HTML <p> tag has the opening and the closing tag where the content can me entered and get the different paragraphs if needed. This <p> tag in HTML is the basic tag.

You can go through it briefly by giving your own examples and changing all the tags and making it more fun. Although <p> tag is commonly used everywhere on creating the web page.

<!DOCTYPE html>
			<title> HTMl p Tag </title>
			<p>This paragraph is defined using the p tag in HTML.</p>




With this, we come to an end of this p tag in HTML blog. Now you know how to define paragraphs in HTML.

Check out our Full Stack Web Developer Masters Program which comes with instructor-led live training and real-life project experience. This training makes you proficient in skills to work with back-end and front-end web technologies. It includes training on Web Development, jQuery, Angular, NodeJS, ExpressJS, and MongoDB.

Got a question for us? Please mention it in the comments section of this article and we will get back to you.

Upcoming Batches For Full Stack Web Developer Masters Program Course
Course NameDate
Full Stack Web Developer Masters Program Course

Class Starts on 30th September,2023

30th September

SAT&SUN (Weekend Batch)
View Details

Join the discussion

Browse Categories

webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.

image not found!
image not found!

All you need to Know about p tag in HTML