0

How do you add a element in a paragraph (such as <br />) without it breaking the paragraph like it normally would? (In html)

When explaining the properties of html, in html, how would someone show the element without it functioning like it normally would. Also, without adding extra spaces or characters. <p>The <br /> element breaks a paragraph or scentence</p> Ordinarally, the <br /> element would cause the paragraph to be split in two. But the element needs to be included in the paragraph itself, so it's part of the output.

13th Mar 2018, 4:30 AM
Lobster Rage Fist
Lobster Rage Fist - avatar
2 Respuestas
+ 2
In those cases you should do something like: "The &lt;br /&gt; (...)"
13th Mar 2018, 4:41 AM
Mickel
Mickel - avatar
+ 3
you can always use CSS for raw ones Eg: body:after{ content: "<p>The <br /> element breaks a paragraph or sentence</p>"; }
13th Mar 2018, 4:57 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar