TAG
JavaScript
Result
Run
License
<p> <span class="emphasis keyword">Lorem Ipsum</span> is simply dummy text of the printing and typesetting industry. <span class="keyword">Lorem Ipsum</span> has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p>
window.addEventListener("load", () => { let aElSpan = document.querySelectorAll('.keyword'); [...aElSpan].forEach(elSpan => { elSpan.insertAdjacentText("beforebegin", "★"); elSpan.style.backgroundColor = "yellow"; }); });
Console
expand_less
License
License
by DevDic
Close