This content originally appeared on CodeSource.io and was authored by Deven
In this sort code example, you will learn how do you make a list that lists its items with squares. In order to create a list that lists its items with squares we use list-style-type
CSS property.
ul{
list-style-type: square;
}
Consider the example below Fruitslist.html
:
<!DOCTYPE html>
<html>
<head>
<title>Fruits List</title>
</head>
<body>
<h1>Fruits</h1>
<p>The list of Fruits :</p>
<ul style="list-style-type:square">
<li>Mango</li>
<li>Grapes</li>
<li>Apple</li>
</ul>
</body>
</html>
You will get the following output in the browser:

The post Learn how do you make a list that lists its items with squares? appeared first on CodeSource.io.
This content originally appeared on CodeSource.io and was authored by Deven

Deven | Sciencx (2021-02-11T07:28:47+00:00) Learn how do you make a list that lists its items with squares?. Retrieved from https://www.scien.cx/2021/02/11/learn-how-do-you-make-a-list-that-lists-its-items-with-squares/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.