<p> tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

<p> tag?

I wonder, what is the actual use of <p> tag other creating a breakline

7th Aug 2018, 7:45 AM
Aidil.syaz
Aidil.syaz - avatar
7 Answers
+ 1
The <p> tag is used for large bodies of text. For example if you have an 'About Me' page on your website, and you wanted to write a few paragraphs about yourself, you would write it between <p> and </p>. When you write something in a <p> tag it automatically creates a line break, as if you were writing a new paragraph. However if you want to add in singular line breaks yourself, you should use <br />
7th Aug 2018, 10:22 PM
Chris Bailey
Chris Bailey - avatar
+ 2
the <p> tag is used to start or make a paragraph. you can use <p1> <p2> <p3> and so on. when you enter your css you can use p1 {} to customize anything within that tag. the <p> tag is very helpful in alot of ways
10th Aug 2018, 8:05 PM
Joshua Wilson
Joshua Wilson - avatar
+ 1
You write a long text, dividing it into paragraphs to make it readable and nice looking, and later you can change the formatting of all paragraphs at once, with the help of CSS. You need <p> tags to do that.
24th Aug 2018, 10:05 AM
Finitumus
Finitumus - avatar
0
It isn't used to create a line break; <br> tag is. It's a paragraph element used for creating paragraphs.
7th Aug 2018, 7:57 AM
Lord Krishna
Lord Krishna - avatar
0
Example : If you had visited any article , its written in this layout This is an article................... ............. ....... and so on. This is created using p tag. Hope this helps ☺️☺️.
7th Aug 2018, 8:27 AM
Meet Mehta
Meet Mehta - avatar
- 1
I still dont understand whats paragraph is for
7th Aug 2018, 7:59 AM
Aidil.syaz
Aidil.syaz - avatar
- 1
<p> tag is used for adding paragraphs into webpages. Maybe used for adding IDs and classes to text.
24th Aug 2018, 7:31 AM
Anton Karpov