Search code examples
phphtmlinternet-explorergoogle-chromehref

Links working in Chrome but not in IE?


So I just built a new page and the links work in Chrome AND IE 10 on my local machine but when I upload the site to my server the links only work in chrome? IE acts like there is nothing there?

This is the code behind and here is the link if you want to try it yourself. I haven't even tried Firefox yet. I am afraid what that will do.

http://www.AnthonyRussell.info

Thanks in advance!

    <hr>
    <a href="index.html"><button style="width:180px; height:40px" >Home</button></a>
    <a href="bio.html"><button style="width:180px; height:40px">Biography</button></a>
    <a href="projects.html"><button style="width:180px; height:40px">Projects</button></a>
    <a href="resume.html"><button style="width:180px; height:40px">Abv Resume</button></a>
    <a href="goals.html"><button style="width:180px; height:40px">Goals</button></a>
    <a href="contact.html"><button style="width:180px; height:40px">Contact</button></a>
    <hr>

Solution

  • You can't have a <button> inside an <a> tag. What is it you're trying to do to need a button element?

    Update:

    For more information and possible workaround try:

    Button inside of anchor link works in Firefox but not in Internet Explorer?

    But I'd say styling your own CSS buttons would be better. Try http://www.cssbuttongenerator.com/ if you're short on time.