We would like to know how to add Border around li tag.
<!-- ww w . ja va2s . com-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.borderlist {
border: 1px solid black;
list-style-position: inside;
}
</style>
</head>
<body>
<ol>
<li>One</li>
<li class="borderlist">Two
<ol>
<li>Red</li>
<li>Blue</li>
</ol>
</li>
<li>Three</li>
</ol>
</body>
</html>
The code above is rendered as follows: