HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> ul{ font-size:18px; line-height: 1.8; } </style> </head> <body> <h1>CSS list-style-type Property</h1> <ul> <li>Apple</li> <li>Banana</li> <li>Cherry</li> </ul> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("ul")[0]; function myFunction(){ x.style.listStyleType = "circle"; } </script> <p><strong>Note</strong>: Click on the button to change the 'list-style-type' from disc to circle.</p> </body> </html>
OUTPUT
×

Save as Private