3 ms·
p stands for paragraph. It's not a line break
by NooneAtAll3 2mo ago
p stands for paragraph. It's not a line break
- ahakki 2mo agoThe spec on <p>: "The start tag is required. The end tag may be omitted if the <p> element is immediately followed by an <address>, <article>, <aside>, <blockquote>, <details>, <div>, <dl>, <fieldset>, <figcaption>, <figure>, <footer>, <form>, h1, h2, h3, h4, h5, h6, <header>, <hgroup>, <hr>, <main>, <menu>, <nav>, <ol>, <pre>, <search>, <section>, <table>, <ul> or another <p> element, or if there is no more content in the parent element and the parent element is not an <a>, <audio>, <del>, <ins>, <map>, <noscript> or <video> element, or an autonomous custom element." [0][1] [0] https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/p https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... [1] https://html.spec.whatwg.org/#the-p-element https://html.spec.whatwg.org/#the-p-element
- chuckadams 2mo agoNonetheless, <p> is automatically closed by the occurrence of another block-level element, like another <p> tag or ones like <div> or any header. <li> and <tr> have similar rules. We close them because we're not savages and want to see container tags balanced in the editor, but the html5 spec doesn't strictly require it.