+ 12
What is the difference between <p> and <br>?
20 Respuestas
+ 14
They are both HTML, oh wait that was a right answer... oops
+ 12
p=paragraph (container)
br=new line
+ 11
<p> stands for paragraph and is used to define a paragraph in HTML , <p> is a container tag , so <p> must be closed.If you close <p> and start another <p> the next para will start from new line , Here <br> (stands for break rule)Which is an empty tag comes handy , rather than starting a new paragraph for new line use <br> 😂👍 and enclose all sentences in a single tag.
Eg-
<p> Mouse ate the cheeze <br> and the the mouse died <br> because Cheeze was poisoned😂😂</p>
+ 8
what are those
+ 8
p inserts donald trumPs face, br inserts tim BeRners-lee's face
+ 8
Lol supersebi 😂
+ 7
p inserts image, br inserts a bracket ([)
+ 7
i dont understand guys
+ 6
First one needs a closing tag other doesn't needs
+ 6
cheese is great
cheeze is suc
+ 6
<br(optional / behind)> is a line break which means that wherever you are currently at it will print a new line.
<p></p> is a paragraph to insert text and format.
+ 4
<p> is penguin and <br> is brrr : expression of feeling cold
+ 4
@Uniq RIP mouse 😂😂😂
+ 4
<p> is a paragraph while
<br> is a line break
+ 3
p is the 16th letter in the alphabet and br does not exist.....
+ 2
@David imagine that you write a paragraph contains 10 sentences.you write it in <p> tag.
it is ok to write all sentences together but what if you want to give 2 line space in your paragraph. in that point you use <br> tag twice to solve your problem .
try to use br tag twice and p tag twice to see difference
p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed scelerisque faucibus tristique. Mauris in semper metus. Curabitur velit sem, accumsan ac efficitur et, rutrum eget elit. Maecenas ultricies, mauris tempus finibus sodales, risus augue eleifend nunc, vel imperdiet nulla odio quis lectus. Interdum et malesuada fames ac ante ipsum primis in faucibus. In ornare est sit amet lacus placerat imperdiet. <br><br>Pellentesque odio metus, pharetra ut cursus vel, laoreet nec augue. Phasellus suscipit egestas lacus. In accumsan arcu laoreet, luctus ipsum eget, pharetra ex.</p>
+ 2
@nico i need to fix your post block elements can contain other block elements but inline elements can not contain please check the link below
https://code.sololearn.com/W8sLiYW0Cj9y/?ref=app
+ 2
Thank you Melih! Much appreciated
+ 2
@david i made a template that you might wanna check
https://code.sololearn.com/W9xbqzMST51U/?ref=app
0
<P> tag is a container element which marks a block of text as a paragraph in a webpage and the web browser leaves a line between two paragraphs. This tag has an attribute ALIGN, which can take three values - left,right and centre . E.g- <P ALIGN=“right”> </P>
<BR> tag is an empty element that is used to break a line and display the proceeding text from the next line, without giving any space between two lines. It has no attribute.