I'm trying to add bold text to my website using javascript, but it literly shows the "<b>"
. How do i fix this?
var TextBox = document.getElementById("TextBox");
TextData.textContent = "<b> hello </b>"
I tried using the document.write("");
, but it changes the whole website. Any Suggestions?
#TextBox::first-word {font-weight:bold}
would surely do it for you? – jaunt Sep 11 '15 at 20:33