Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 3
Is <p> a container element in html?
9 Respostas
+ 6
If a tag can contain another or more tags then that tag is a container tag. (this might not be the formal definition).
<p> or paragraph tag can contain <br/>, <i></i>, <strong></strong> etc tags so it is a container. š
+ 12
yep
+ 9
Yes, it is ^^
+ 9
yes
+ 6
<p> element is a container, but it cannot contain "everything": for example, <hr> is forbidden by Html5 specifications... putting one into a <p> element will cause browsers to correct the code by closing the <p> before the <hr> and either opening a new <p> ( wich doesn't inherit properties from previous ) or ignoring the orphan </p>...
+ 4
<p></p> is a element that defines a paragraph.
The <div> tag defines a division or a section.
Most tags such asĀ <section>,Ā <header>, andĀ <footer>Ā behave very similarly toĀ <div>'s. They're very much up to you to determine how you use them. However, you shouldn't overlook the importance of usingĀ <div>s, especially for styling. For readability though,Ā <section>,Ā <footer>,Ā <header>, and alsoĀ <article>Ā can be very beneficial.
+ 2
ya paragraph tag is a container tag we can contain everything in it
+ 2
oo thanks @visph
0
It is. BUT <P> elements are only allowed to contain inline elements. For example you can't put <div> or another <p> inside <p>.