Way2tutorial Snippet Editor
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>CSS Styles - JavaScript Introduction</title> <style type="text/css"> p#text { font-size: 15px; font-family: "vardana", arial; } </style> </head> <body> <p id="text">Click to change CSS Styles....:)</p> <button type="button" onclick="document.getElementById('text').style.fontSize = '28px';">Change font size</button> <button type="button" onclick="document.getElementById('text').style.color = '#FF21DD';">Change font color</button> </body> </html>