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 Property</h1> <ul id="point"> <li>Apple - An apple is a sweet, edible fruit produced by an apple tree. Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus.</li> <li>Banana - A banana is an edible fruit – botanically a berry – produced by several kinds of large herbaceous flowering plants in the genus Musa. </li> </ul> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("ul")[0]; function myFunction(){ x.style.listStyle = "disc inside url("/volume.svg")"; } </script> <p><strong>Note</strong>: Click on the button to change the 'list-style'.</p> </body> </html>
OUTPUT
×

Save as Private