bold text html javascript code example
Example 1: html bold
<!--Emphasized bold text. It's for content that is of greater importance-->
<strong>I'm a content</strong>
<!--Bold text. It's used to draw attention to text without indicating that it's more important-->
<b>I'm another content</b>
Example 2: 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>