0

Is it possible to turn the <li> number itself into a link but not any of the text inside?

I do know of workarounds, such as creating my own while loop with an increment +1 and formatting it to be similar to a list; however, I was hoping to maintain the structure <ol><li></li></ol>. Thanks for any help!

For example...
1. List Item One
2. List Item Two

1 Answers1

0

You can try answers from this page How to make the HTML link activated by clicking on the <li>? or this code

<li onclick="location.href='page.html';"  style="cursor:pointer;">...</li>