Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

make text bold js

<button onclick="myFunction()">Try it</button>

<p >Make text bold <span id="demo">Text Bold</p>

<script>
function myFunction() {
  document.getElementById("demo").style.fontWeight = "900";
}
</script>
Source by codepen.io #
 
PREVIOUS NEXT
Tagged: #text #bold #js
ADD COMMENT
Topic
Name
6+2 =