CSS Properties: How to specify all the list properties in one declaration ?
Solution:
HTML Code:
<!DOCTYPE html>
<html>
<head>
<title>How to specify all the list properties in one declaration</title>
<style type="text/css">
.one {
list-style: circle;
}
.two {
list-style: square inside;
}
</style>
</head>
<body>
<p><strong>w3resource Tutorial</strong></p>
<ul class="one">
List 1
<li>HTML5</li>
<li>JavaScript</li>
<li>PHP</li>
</ul>
<ul class="two">
List 2
<li>CSS3</li>
<li>SQL</li>
<li>MySQL</li>
</ul>
</body>
</html>
Live Demo:
See the Pen list-style-answer by w3resource (@w3resource) on CodePen.
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join