Explore 100's Of Free Video Tutorials

Keep Learning, Keep Coding & Keep Sharing


CSS list-style-image (HTML ul tag)


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">
<meta charset="utf-8">
<title>CSS Demo</title>
<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>

Interview Questions: