Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Codersarts
- <!DOCTYPE html>
- <html>
- <body>
- <h2>What JavaScript Can Do?</h2>
- <p id="demo">JavaScript can change the style of an HTML element.</p>
- <button type="button" onclick="document.getElementById('demo').style.fontSize='25px'">Click Me!</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement