<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Hello</title> <style> h1 { color: #333333; font-size: 48px; text-shadow: 3px 3px 3px #666666; } </style> </head> <body> <h1 onclick="change()">Hello, World</h1> <script> let change = () => { document.getElementsByTagName('h1')[0].style.color = '#ff0000' } </script> </body> </html>
Sign in to make a reply
Robottiii