Я хочу, чтобы гиперссылка применялась только к изображению, но не знаю, как закончить привязку.HTML5 Ссылка на конец гиперссылки
Он продолжает связывать заголовок и другие текстовые блоки под моей линией гиперссылки. Я не уверен, что я делаю неправильно. Как выделить гиперссылку только для изображения? Я использую Google Chrome в качестве браузера
Вот мой код:
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"
<title>Example Document</title>
</head>
<body>
<h1>This is Craig's Favorite Dog.</h1>
<p>Click on image for more information.
<article>
<dd><a href="https://en.wikipedia.org/wiki/Newfoundland_(dog)">
<img src="https://media.mnn.com/assets/images/2016/04/newfoundland- dog.jpg" height="240" width="360"
</a></dd>
</article>
</p>
</body>
<br>
<br>
<h2>This is the fart of the dog<h2>
<audio controls>
<source src="fart.mp3" type="audio/mpeg">
<source src="fart.ogg" type="audio/ogg">
Your browser does not support the audio element.
</audio>
</html>`
Вы не добавить «>» в конце тега после " 360" . Замените code with this : – Jehoshuah