How can I put a hyperlink in the HTML5 list?

-2

I have a list ordered in html5, I wanted to know how I can do that by clicking on the text that is between the "li" send me an external page. I'm using dreamweaver.

    
asked by Melannie Nichole 28.08.2017 в 02:20
source

2 answers

2

If what you need is redirection to another page when you click on the text use the tag

<ul>
    <li> <a href="ruta.com"> Nombre de la pagina </a> </li>
</ul>
    
answered by 28.08.2017 / 02:27
source
1

For each item in the list you put the label:

<a></a>

it would be like this:

<ul>
<li><a href="https://www.w3schools.com">Visit W3Schools.com!</a></li>
<li><a href="https://www.w3schools.com">Visit W3Schools.com!</a></li>
</ul>
    
answered by 28.08.2017 в 02:32