我写的所有HTML都被链接(不使用hrefs)?
这就是我正在使用的代码。由于某种原因,MSN.com下面的所有内容都成为链接。我已经检查了我的CSS,我认为问题是存在的,但是我想先看看它来自HTMl端的地方是否有什么问题我写的所有HTML都被链接(不使用hrefs)?,html,css,Html,Css,这就是我正在使用的代码。由于某种原因,MSN.com下面的所有内容都成为链接。我已经检查了我的CSS,我认为问题是存在的,但是我想先看看它来自HTMl端的地方是否有什么问题 <a href="http:msn.com" target="blank"><img class="makeBlock" src="images/scenery.jpg" alt="This is a clickable image"></a><br><br> &l
<a href="http:msn.com" target="blank"><img class="makeBlock" src="images/scenery.jpg" alt="This is a clickable image"></a><br><br>
<!-- One way to utilize this functionality is to have a nice image button saved and use that to link to stuff -->
<!-- An array of images that are thumbnail size that be clicked to go to a new window for the bigger version -->
<a href="http://yahoo.com" target="blank"><img src="images/scenery.jpg" alt="thumbnail size to link" width="width 52" height="70">
<a href="http://yahoo.com" target="blank"><img src="images/scenery.jpg" alt="thumbnail size to link" width="width 52" height="70">
<a href="http://yahoo.com" target="blank"><img src="http://freeforcommercialuse.net/wp-content/uploads/2017/08/msp_1701_4269.jpg" alt="thumbnail size to link" width="width 52" height="70">
<a href="http://yahoo.com" target="blank"><img src="images/scenery.jpg" alt="thumbnail size to link" width="width 52" height="70">
<a href="http://yahoo.com" target="blank"><img src="images/scenery.jpg" alt="thumbnail size to link" width="width 52" height="70">
<a href="http://google.com" target="blank"><img src="images/scenery.jpg" alt="thumbnail size to link" width="width 52" height="70">
<br>
<br>
</div>
<!-- The below is to create an image map using coordinats so people can click on different areas and go different places -->
<img src="http://freeforcommercialuse.net/wp-content/uploads/2017/08/msp_1701_4269.jpg" usemap="#scenery">
<map name="scenery">
<area shape="rect" alt="Left side strong side" coords="0,10,536,614" href="https://nba.com" target="blank">
</map>
<!-- An unordered list is called a bullet list. An ordered list is with numbers -->
<ul>
<li>Sun</li>
<li>Moon</li>
<li>Test</li>
</ul>
<ol>
<li>Ordered Sun</li>
<li>Ordered Moon</li>
<li>Ordered Test</li>
</ol>
<table>
<tr>
<td>Apples R1C1</td>
<td>Oranges R1C2</td>
</tr>
<tr>
<td>Pears R2C1</td>
<td>Peaches R2C2</td>
</tr>
</table>
您缺少所有锚元素的结束标记。结构应该是这样的 或者用你们中的一个例子
<a href="http://google.com" target="blank">
<img src="images/scenery.jpg" alt="thumbnail size to link" width="width 52" height="70">
</a>
您尚未在代码中正确关闭。您从未使用关闭a元素。谢谢!天啊,我知道这很简单,我花了半个小时尝试了所有东西,但是没有。欢迎来到Stack Overflow!投票结束,因为该问题是由无法再复制的问题或简单的印刷错误引起的。虽然类似的问题可能在这里的主题,这是一个解决的方式不太可能帮助未来的读者。