Computer >> Computer tutorials >  >> Programming >> CSS

How to create an unordered list without bullets using CSS?


To create an unordered list without bullets using CSS, the code is as follows −

Example

<!DOCTYPE html>
<html>
<head>
<style>
   body{
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   }
   ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      font-size: 18px;
      font-weight: bold;
   }
</style>
</head>
<body>
<h1>Remove bullets from ul example</h1>
<ul>
<li>Tiger</li>
<li>Giraffe</li>
<li>Lion</li>
</ul>
</body>
</html>

Output

The following output will be produced by the above code −

How to create an unordered list without bullets using CSS?