What I am trying is, when the mouse is over the link of #first-block1
, the link of #first-block2
should get underline. Only through CSS not javascript.
#first-block1:hover {
#first-block2 {
text-decoration: underline;
}
}
<p><a id="first-block1" href=""><span style="color:black;">yoast.com</span> <span style="color:#515A5A">> SEO blog > SEO Basics</span></a><br><a id="first-block2" href="">Elements of Google Search Engine Results Page. SEO for ...</a></p>