Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <div id="myDiv"> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </div><br> <button type="button" onclick="myFunction()">Indent text</button> <script> function myFunction() { document.getElementById("myDiv").style.textIndent = "50px"; } </script> </body> </html>