Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <style>
- #foo {
- color: green;
- }
- </style>
- </head>
- <body>
- <h1 id="foo">Lorem ipsum</h1>
- <script>
- console.log(document.getElementById("foo").style.color);
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment