I am constantly modifying text on a webpage using JavaScript. I want text that will match other elements like texts, inputs, etc. Which HTML element should I use? And <div>, and <p>create new lines and other things. <b>does what I want, but it selects all the text. What is the right alternative?
source
share