Why do we use parentheses in <p> Hello </p> and slash too ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why do we use parentheses in <p> Hello </p> and slash too ???

22nd Dec 2018, 5:47 PM
Lucky Gupta
Lucky Gupta - avatar
2 Answers
+ 5
To help the browser that the paragraph start and it ends or else the browser will get load it will not understand where to stop without /p it will take as a opening a new paragraph
22nd Dec 2018, 6:19 PM
Yash🏁🔘
Yash🏁🔘 - avatar
+ 2
First <p> is a sign to start new paragraph And </p> the one with slash, mark the end of the paragraph
22nd Dec 2018, 5:53 PM
Taste
Taste - avatar