M
M
mih_max2016-08-14 00:55:41
MODX
mih_max, 2016-08-14 00:55:41

Why are two links not displayed in the block?

Hello.
There is a block. There are two links in the background of the photo: the name of the material and the heading in which this material is included. Only the link below in the code works. Why is this happening and how can I make both links lead to the right places?

<article>
<span class="image">
<img src="cat.jpg" alt="cat" />
</span>
<header class="major">
<h3><a href="material" class="link">Материал</a></h3>
<p><a href="rubrika" class="link">Рубрика</a></p>
</header>
</article>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Андрей Верх, 2016-08-14
@mih_max

проблема в CSS, а не HTML

Человек с Казахстана, 2016-08-14
@LenovoId

spanthis is a line tag But not a block tag,
you can put it imgin a tag <p></p>, but <span><img src=""></span>it is deprecated , i.e. it works for some reason and the validator will swear you for it, although in html5 it no longer matters but it’s not worth it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question