I'm constantly modifying some text on a web page with JavaScript. I want the
text to be in-line with other elements, like texts, inputs, etc. What HTML element should I use? Both <div>
and <p>
create new-lines and other things. <b>
kind of does what I want, but it bolds all the text. What's the correct alternative?
The <span> tag is the in-line equivalent of <div> . Show activity on this post. Show activity on this post. You can apply a float , inline or inline-block to elements to get them to show up next to other elements.
Answer. Answer: Underline style is not paragraph formatting.
HTML elements with no content are called empty elements.
The <span>
tag is the in-line equivalent of <div>
.
<span>
you could also apply a display:inline style to a <div>
and get similar results
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With