HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <h1>CSS hanging-punctuation Property</h1> <p>"Joanne Rowling was born on 31st July 1965 at Yate General Hospital near 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.hangingPunctuation = "first"; } </script> <p><strong>Note</strong>: This example will only works in safari.</p> </body> </html>
OUTPUT
×

Save as Private