• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

Css Basic: list-style-type

December 20, 2023

CSS Basics: list-style-type

In web development, CSS (Cascading Style Sheets) plays a crucial role in controlling the visual appearance of HTML elements. One of the essential CSS properties for styling lists is list-style-type. This property allows you to define the appearance of list item markers, such as bullets or numbers. In this article, we will explore the various values of list-style-type and how they can be used to enhance the presentation of lists on your website.

Default List Styles

By default, HTML unordered lists (<ul>) display bullet points as list item markers, while ordered lists (<ol>) display numbers. However, you can customize these default styles using the list-style-type property.

Common Values of list-style-type

1. none: This value removes the list item markers altogether, resulting in a plain list without any visual indicators.

2. disc: This value displays a filled circle as the list item marker. It is the default style for unordered lists.

3. circle: Similar to disc, this value displays an empty circle as the list item marker.

4. square: This value displays a filled square as the list item marker.

5. decimal: This value displays decimal numbers (1, 2, 3, etc.) as the list item markers. It is the default style for ordered lists.

6. decimal-leading-zero: Similar to decimal, this value displays decimal numbers with leading zeros (01, 02, 03, etc.) as the list item markers.

7. lower-roman: This value displays lowercase Roman numerals (i, ii, iii, etc.) as the list item markers.

8. upper-roman: Similar to lower-roman, this value displays uppercase Roman numerals (I, II, III, etc.) as the list item markers.

9. lower-alpha: This value displays lowercase alphabets (a, b, c, etc.) as the list item markers.

10. upper-alpha: Similar to lower-alpha, this value displays uppercase alphabets (A, B, C, etc.) as the list item markers.

Applying list-style-type

To apply the list-style-type property, you can target the <ul> or <ol> elements in your CSS stylesheet. Here’s an example:

ul {
  list-style-type: square;
}

ol {
  list-style-type: upper-roman;
}

In the above example, all unordered lists will have square markers, while all ordered lists will have uppercase Roman numeral markers.

Conclusion

The list-style-type property in CSS allows you to customize the appearance of list item markers. By using different values, such as disc, decimal, or lower-alpha, you can enhance the visual presentation of your lists. Experiment with different styles to find the one that best suits your website’s design.

For more information on VPS hosting solutions, visit Server.HK.

Recent Posts

  • How to Deploy a Node.js Application on Hong Kong VPS: Complete Guide
  • How to Set Up a WordPress Site on a Hong Kong VPS with aaPanel (Step-by-Step 2026)
  • How to Choose the Right Hong Kong VPS Plan: A Buyer’s Guide for 2026
  • CN2 GIA vs BGP vs CN2 GT: What’s the Real Difference for China Connectivity?
  • Top 5 Use Cases for a Hong Kong Dedicated Server in 2026

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot