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.
2 Respuestas
+ 2
In those cases you should do something like:
"The <br /> (...)"
+ 3
you can always use CSS for raw ones Eg:
body:after{
content: "<p>The <br /> element breaks a paragraph or sentence</p>";
}