<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>CSS text-indent Property</h1>
<p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("p")[0];
function myFunction(){
x.style.textIndent = "50px";
}
</script>
<p><strong>Note</strong>: click on the button to change the 'text-indent' from 0 to 50px.</p> </body>
</html>