<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>
Code Example |
---|
Html :: html5 audio tag style |
Html :: ionic 5-star-rating |
Html :: difference between xhtml and html |
Html :: bootstrap starter template |
Html :: bootstrap alerts |
Html :: how to include the trademark symbol in html |
Html :: html practice exercises |
Html :: bootstrap 4 search box |
Html :: getmdl |
Html :: print button html |
Html :: on click in a tag |
Html :: slick slider pause on video play |
Html :: external javascript file not working |
Html :: link with no link html |
Html :: ip html |
Html :: html table tag |
Html :: html img src background |
Html :: how to use style in html |
Html :: textbox with dropdown bootstrap |
Html :: html images |
Html :: highlight js |
Html :: html css block button |
Html :: bootstrap 4 multiple file upload |
Html :: select country dropdown with flag |
Html :: how to make html text bold |
Html :: prefill input field html |
Html :: template html |
Html :: html text color tag |
Html :: hyperlinks in html |
Html :: wikipedia api url |