Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> #myDiv { border: 3px solid red; } </style> </head> <body> <div id="myDiv">This is a div.</div> <br> <button type="button" onclick="myFunction()">Set outline</button> <script> function myFunction() { document.getElementById("myDiv").style.outline = "thick solid #0000FF"; } </script> </body> </html>