HTML链接不起作用 - 这应该不难

use*_*563 -1 html href

这是一个功能完善的页面,其中包含工作样本的链接.我添加了一些XML工作,该链接将无法运行.我无法弄清楚为什么.如果它显而易见,我道歉.谢谢!

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title></title>
    </head>
    <body>
        <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
        <center>
            <a href="C++/index.html"><div class="friend"><p>C++</p></div></a>
            <a href="SQL/index.html"><div class="family"><p>SQL</p></div></a>
            <a href="OS/index.html"><div class="enemy"><p>OS</p></div></a>
            <a href-"XML/index.html"><div class="friend"><p>XML</p></div></a>
            <a href="Miscellaneous/index.html"><div class="family"><p>Miscellaneous</p></div></a>
            <a href="http://github.com/"><div class="enemy"><p>GitHub</p></div></a>




        </center>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

这是样式表:

div {
    position: relative;
    display: inline-block;
    height: 100px;
    width: 100px;
    border-radius: 100%;
    border: 2px solid black;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
}

div p {
    position: relative;
    margin-top: 40px;
    font-size: 16px;
}

.friend {
    border: 4px solid green;
}

.family {
    border: 4px solid blue;
}

.enemy {
    border: 4px solid red;
}

a:hover
{ 
background-color:yellow;
}
Run Code Online (Sandbox Code Playgroud)

Chr*_*nus 6

XML行上的href标记中存在拼写错误.

            <a href-"XML/index.html"><div class="friend"><p>XML</p></div></a>
Run Code Online (Sandbox Code Playgroud)

应该

            <a href="XML/index.html"><div class="friend"><p>XML</p></div></a>
Run Code Online (Sandbox Code Playgroud)