Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

IE Does not Open Link

Hi Experts,

I have a very basic script as follows:
 <!DOCTYPE html>
<html lang="en">

 <head>
	<meta charset="utf-8">
        <title>RS @ APD</title>
	<link rel="stylesheet" href="https://192.168.1.202/CSS_Reservations/styles/main.css">
        
        
        <link rel="stylesheet" href="https://192.168.1.202/CSS_Reservations/styles/">
            
</head>


    <body >

        <h1>RS @ APD</h1><br>
        <h2>Temporary Dispatch Page</h2>
        
        <!--Content Start-->

    <!--content-->
    <a href="../addedit/"> <input type="button" value="Add/Edit" class="buttons"> </a>
    <br><br>
    
    <a href="../login/?action=logout"> <input type="button" value="Logout" class="buttons"> </a>
    <br><br>
         
<!--Place where appropriate-->
        <!--Info Start-->
        <div id="info">
            <img src="https://192.168.1.202/CSS_Reservations/images/info.gif">
            <p> Please make your selection... </p>
        </div>
    <!--Info Finish-->

 
    
        <!--Content Finish-->

    </body>
 
 </html>

Open in new window


The buttons work in all browsers except the very special IE. Any idea why
Avatar of F P
F P
Flag of United States of America image

You can't have a button tag/element inside an a (anchor) tag/element.

Reference:
http://www.w3.org/TR/html-markup/button.button.html#button.button

The interactive element button must not appear as a descendant of the a element.
.. The fact that it works in other browsers are from developers being nice and allowing your mistake to work.
ASKER CERTIFIED SOLUTION
Avatar of F P
F P
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of APD Toronto

ASKER

This make sense, but the funny thing is that this also worked on IE 2 weeks ago, but not anymore.
IE and Microsoft are the "we walk our own path" and try to be leaders.. instead of following standards and conventions. You never know with them what will happen.
... lol, I just remembered a saying I often use. Everything works until it doesn't.