Join TalkersCode Now !

Get Latest Tutorials And Links On Web Development
And Get Existing Offers Via 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

Are You Starting A New Blog
Do You Want Best Web Hosting?

Try World's Best Web Hosting Provider BlueHost
At Just $3.95/mo

Hurry Up! Limited Time Offer

Yes, I Want To Check Out BlueHost

Check The World's Best SEO And All-In-One Marketing Toolkit
For Digital Marketing Professionals SEMRUSH

Check Out SEMRUSH