锚标记无法正常工作。当我打开网页时,它的行为就像一个简单的文本,而不是链接

问题描述 投票:0回答:1

此代码中的此链接将我重定向到google,而是表现为纯文本。请尽快答复]忘记密码

<!DOCTYPE>
<html>
    <head>
        
        <title>Messages</title>
        <!-- <link rel="stylesheet" href="mystyle1.css" type="text/css"> -->

    </head>
    <body>

        <div class = message id = neutral>This is a message.</div>
        <div class = message id = good>This is a good message.</div>
        <div class = message id = warning>This is a warning message.</div>
        <hr />
       /*This anchor tag is not working*/<br>
        <a herf = "https://www.google.com">Forgot Password?</a>
    </body>

</html>

此代码中的此链接将我重定向到google,而不是将其视为纯文本。请尽快回复我,忘记密码

...
html forms hyperlink html5-canvas anchor
1个回答
0
投票

有错字。将herf更改为href

© www.soinside.com 2019 - 2024. All rights reserved.