Coding⏱️ 2 min read📅 2026-05-31

How to Fix: HTML ordered list 1.1, 1.2 (Nested counters and scope) not working

Nested counters and scope not working in HTML ordered list

Quick Answer: Use the `counter-increment` property on the parent element instead of the child element.

HTML ordered list counter issues can be frustrating, especially when using nested counters and scope. In this guide, we will explore common causes of the issue and provide a step-by-step solution.

⚠️ Common Causes

  • Incorrect use of the `counter-reset` property.

🚀 How to Resolve This Issue

Method 1: Understanding Counter Reset

  1. Step 1: Ensure the `counter-reset` property is set to the correct value, including the counter name and its scope.

Method 2: Using `counter-increment` Correctly

  1. Step 1: Make sure to use the correct counter name in both the `counter-reset` and `counter-increment` properties.

💡 Conclusion

By following these steps, you should be able to resolve the issue with nested counters and scope in your HTML ordered list.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions