Specify all the list properties into a single expression with CSS


The list-style property allows you to specify all the list properties into a single expression.

Example

You can try to run the following code to list all properties like list-style, type, etc in one line:

<html>
   <head>
   </head>
   <body>
      <ul style = "list-style: inside circle;">
         <li>Laptop</li>
         <li>Desktop System</li>
      </ul>
      <ol style = "list-style: outside lower-alpha;">
         <li>Laptop</li>
         <li>Desktop System</li>
      </ol>
   </body>
</html>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 03-Feb-2020

65 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements