must i use <p></p> for each sentence in html ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

must i use <p></p> for each sentence in html ?


25th Aug 2016, 4:46 PM
Hafiz Adnan
Hafiz Adnan - avatar
15 Answers
+ 3
Sorry I should have elaborated. Using multiple <p></p> tags for each paragraph is not normal practice anymore. I was just trying to explain the original function of the <p> tag.
26th Aug 2016, 7:51 PM
Michael Lisenby
Michael Lisenby - avatar
+ 2
use </br> ex : <p> this is example </br> to show you </p>
26th Aug 2016, 7:31 PM
SuperTnx - avatar
+ 2
No, you don't have to. It's just like indenting a paragraph in a paper. You only have to do it once per section of text, if that makes sense (except, of course, this time you have to mark the end of the paragraph as well as the beginning, where a normal paragraph in a paper you would just indent).
29th Aug 2016, 1:55 AM
Stephen Timperley
Stephen Timperley - avatar
+ 1
No, you can use a single paragraph tag for multiple sentences. The <p> tag is meant to help you organize paragraphs. Multiple <p></p> tags will automatically create a line break after each closing tag.
25th Aug 2016, 5:14 PM
Michael Lisenby
Michael Lisenby - avatar
+ 1
Thankyou michael that's explicit
25th Aug 2016, 5:19 PM
Hafiz Adnan
Hafiz Adnan - avatar
+ 1
use a line break <br>
25th Aug 2016, 7:48 PM
Brandon Beaux Fontenot
Brandon Beaux Fontenot - avatar
+ 1
Line brake
26th Aug 2016, 2:44 AM
Shivam Dhama
Shivam Dhama - avatar
+ 1
this tag is for pargrph use once write pargrah in this tag
27th Aug 2016, 2:02 AM
Muhammad Asad Ali
+ 1
s r else it prints in the same line
27th Aug 2016, 10:18 AM
lavanya eswara
lavanya eswara - avatar
+ 1
paragraph tag actually consists of the data which is semantically same
27th Aug 2016, 7:18 PM
Burhan Naeem
Burhan Naeem - avatar
+ 1
no you don't have to
27th Aug 2016, 10:57 PM
+ 1
No, you don't need to..
28th Aug 2016, 7:27 AM
Imran Anwar
Imran Anwar - avatar
+ 1
u van also use <pre></pre> nd wrute ant thing... as much as u want.. and.. it will print exectly u write.. bitween it... with space coma.. nd enter
28th Aug 2016, 9:19 AM
Shivam Singh Rajput
Shivam Singh Rajput - avatar
no , you can add <br /> to enter and then continue your sentences in the paragraph
4th Sep 2016, 3:16 PM
Hatef talooei
Hatef talooei  - avatar
In <p> tag, p stangs for Paragraph, So if you intend put a paragraph in your web page, just put <p> tag before the Paragraph starting and end it with closing </p> tag. Also you can apply BOLD <b>, ITALIC <i> etc to that Paragraph.
2nd Feb 2017, 3:33 PM
Praveen Kumar
Praveen Kumar - avatar