What is the role of the list-style-image attribute?

Frontend 2021-09-15 20:05:49 0 6,498

The list-style-image property is used to set the bullet image. By setting this property, the corresponding image can be selected as the bullet before the item list.For example:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>itdot</title> 
<style>
ul 
{
	list-style-image:url('sqpurple.gif');
}
</style>

</head>

<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
</body>
</html>

What is the role of the list-style-image attribute?-ITdot


Your opinion

Already have 0 Article answer