Do you want to be a good Web Developer?

Enter Your Email To Get Our Exclusive Tutorials
And Offer Right In Your Email

Javascript CSS

Javascript CSS

With the help of Javascript you can add, delete and change the styling of an HTML elements.


Syntax


document.getElementById(id).style.property=new style;

Example of Javascript CSS

<html>
<head>

<script>
document.getElementById("link1").style.color = "red";
</script>

</head>

<body>

<a href="#">This is a Link</a>

</body>
</html>
PreviousNext

Join Us With Our 21000+ Subscribers And Get Our Latest Tutorials Update Via Email