let a = document.createElement("em");
let b = document.createElement("strong");
let c = document.createElement("span");
a.textContent = "I ";
b.textContent = "love ";
c.textContent = "javascript";
c.style.cssText = "color: red;";
let d = document.querySelector("#output");
d.appendChild(a);
d.appendChild(b);
d.appendChild(c);
</script>
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: innerHTML Vs. textContent: The subtle difference.
For further actions, you may consider blocking this person and/or reporting abuse