'How to make a List a hyperlink?

I'm working on a link list and I can't get the List to be a hyperlink

<ul>
 <a href="pdf/VPN.pdf" target="_blank"></a> <li>VPN</li> </a> 
</ul>


Solution 1:[1]

Try:

<ul>
  <li><a href="pdf/VPN.pdf" target="_blank">VPN</a></li> 
</ul>

In your original markup you had the link outside of the list item, and then an extra </a> tag at the end.

Solution 2:[2]

Like this:

<ul>
    <li><a href="#">Link 1</a></li>
    <li><a href="#">Link 2</a></li>
</ul>

li stands for "list item". This is the only tag you can have as a direct child of <ul>...</ul>, so you have to put your links inside the <li>.

Solution 3:[3]

you need to put the < li > tag before the entire link code and the < /li > at the end of the entire source tag.

for example =

<ul>
 <li> <a herf = "link you want to post"> Link to stuff </a> </li>
</ul>

I hope it helps

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 donohoe
Solution 2 Amin Kavari
Solution 3 Darksoul