-2
我刚开始学习HTML和CSS代码,并遇到以下问题。我有一个使用图像的网站链接。链接工作正常,但它也适用于下一行的其他代码。 (标题和段落) 我该如何防止这种情况?适用于不需要的其他代码行的“链接”
<a href="photographicadventures.co.uk"<a/>;
<img src="images/w3schools.jpg" class="center" size width ="200" height="200">
<br>
<br>
<hr>
<h2>This is a Smaller Heading.</h2>
<p>This is a paragraph and is colored red and resized and centered due to the external style sheet </p>
感谢你的帮助,我理解你的代码,并能看到我错在哪里。 – user2894267