Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript HTML DOM - Changing CSS

<html>
<body>

<p id="p2">Hello World!</p>

<script>
document.getElementById("p2").style.color = "blue";
</script>

</body>
</html>
 
PREVIOUS NEXT
Tagged: #JavaScript #HTML #DOM #Changing #CSS
ADD COMMENT
Topic
Name
9+7 =