0

<p>Next word is bold</p><strong><p>Bold</p></strong>
but the paragraphs are separated how could i combine theses into one like this

"Next Word Is Bold Bold"

within the use of javascript?

  • 3
    `

    Next word is bold Bold

    ` Is that what you're looking for?
    – artie Oct 20 '21 at 16:03
  • What html, none of it is 'Invalid' if it worked correctly as intended to. – hecker hecker Oct 21 '21 at 20:49
  • Inline elements like `strong` shouldn't wrap block elements like `p`, it should be the other way around. Practically, you can, and you can also style an inline element to behave like a block element and vice versa but it would still technically be considered "invalid" html. – UncaughtTypeError Oct 21 '21 at 20:59

1 Answers1

0

<p>Next word is bold <strong>Bold</strong></p>

Is that what you're looking for? – artie