JavaScript can change styles


<!DOCTYPE html>

<h2>What Can JavaScript Do?</h2>

<p id="Zaki" fontsize='12px'>Hello Zaki</p>
<button type="button" onClick="document.getElementById('Zaki').style.fontSize='8px'">
Click to Redcue


where to put codes


<!doctype html>
function myFunction(){
	document.getElementById('demo').innerHTML="paragraph changed.";



<h2> javascript in head</h2>
<p id="demo">A Paragraph</p>
<button type="button" onClick="myFunction()">
Try  It




It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published. Required fields are marked *