Explore 100's Of Free Video Tutorials

Keep Learning, Keep Coding & Keep Sharing

CSS

CSS list-style-image (HTML ul tag)

Notes:

CSS list-style-image property:
It is used to specify the image to be used as a bullet symbol
Value: url(‘image path’);
Note: image size should be 12 x 12

Example Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS Demo</title>
</head>
<body>
<ul style="list-style-type:none;
list-style-image:url('checkmark.png'); ">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
</body>
</html>

Interview Questions: