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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With