Premium Only Content

Learn CSS: Add List Style in Website | Day 13 | Web development course for Beginner
Visit - www.skyhighes.com
Adding List Style in Website
There are two main ways to add list style in a website:
1. Using HTML:
Unordered lists: Use the <ul> tag for unordered lists. Each list item is defined within an <li> tag. You can customize the list style using the list-style-type property in CSS. Here's an example:
HTML
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Use code with caution. Learn more
You can then style the list with CSS:
CSS
ul {
list-style-type: disc; /* This sets the list style to circles */
}
Use code with caution. Learn more
There are other list-style-type values available, such as square, decimal, lower-roman, etc.
Ordered lists: Use the <ol> tag for ordered lists. Each list item is still defined within an <li> tag. You can customize the start value and numbering style using attributes within the <ol> tag. Here's an example:
HTML
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
Use code with caution. Learn more
You can then customize the list with HTML attributes:
HTML
<ol start="5" type="a">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
Use code with caution. Learn more
This code will start the list numbering at 5 and use lowercase alphabetic characters.
2. Using CSS:
You can also use CSS to create custom list styles, including:
Changing the list marker type: Use the list-style-type property to specify a different marker type, such as squares, circles, or images.
CSS
ul {
list-style-type: square;
}
li::marker {
background-image: url("my-image.png");
}
Use code with caution. Learn more
Changing the list marker position: Use the list-style-position property to specify whether the marker appears inside or outside the list item.
CSS
ul {
list-style-position: outside;
}
Use code with caution. Learn more
Changing the list item indentation: Use the margin-left property to indent the list items.
CSS
li {
margin-left: 20px;
}
-
1:07:59
NotTheBee
23 hours agoOur Memories Of Charlie Kirk And What This Means For The Country
21.3K19 -
LIVE
The Rubin Report
1 hour agoListen to the Fear in Whoopi Goldberg’s Voice on 'The View' as She Gives a Chilling Warning
2,724 watching -
LIVE
Benny Johnson
1 hour agoKash Patel Testifying LIVE Now on Charlie Kirk Assassination, Trump to Declare Antifa TERRORISTS?!
6,865 watching -
2:07:38
Timcast
2 hours ago🚨LIVE: Kash Patel Testifies Over Charlie Kirk Assassination In Senate | Tim Pool
56.7K28 -
1:01:35
VINCE
2 hours agoThe Left's 'Malignant' Violence Problem | Episode 126 - 09/16/25
191K59 -
LIVE
LFA TV
5 hours agoLFA TV ALL DAY STREAM - TUESDAY 9/16/25
4,705 watching -
1:45:59
Dear America
3 hours agoKiller ADMITS To Killing Charlie In DISCORD. Terror Cell EXPOSED! + JD Fills In on Charlie’s Show!
148K81 -
LIVE
Wendy Bell Radio
6 hours agoThe Left Lives In A Bubble
6,948 watching -
LIVE
Barry Cunningham
2 hours agoLIVE BREAKING NEWS: KASH PATEL HEARING!
1,595 watching -
LIVE
House Committee on Energy and Commerce
1 hour agoAppliance And Building Policies: Restoring The American Dream Of Home Ownership And Consumer Choice
39 watching