Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<strong><a> or <a><strong>?

Tags:

Which is the best practice when nesting inline and anchor tags?

<strong><a href="">link</a></strong> or <a href=""><strong>link</strong></a>

Surprisingly enough I haven't found the answer here or googling it.

like image 324
Naoise Golden Avatar asked Dec 13 '11 12:12

Naoise Golden


1 Answers

None is correct.

If it's just a matter of styling the entire <a> tag in bold, do it using CSS and leave the <strong> tag where it would have a significant semantic meaning.

<a> tags have a specific meaning and just bolding them all up won't change that meaning.

like image 179
Mihalis Bagos Avatar answered Nov 16 '22 00:11

Mihalis Bagos