Search code examples
htmlhref

href attribute with http


Normally we would add a link like this

<a href="http://www.stackoverflow.com/">Stackoverflow</a>

but while reading a book I found like this

<a href-http://www.stackoverflow.com/>Stackoverflow</a>

Is this a mistake, if not What are the differences between them and why to use href="ulr" and href-http: "url" ?


Solution

  • It is a typo. That - should simply be a =.