Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add <strong> tag inside <a> or outside <a> tag? [duplicate]

Tags:

Possible Duplicate:
Is it right to add <span> tag inside <a> tag?

<a href="domainname"><strong>Its Me</strong></a>  

OR

<strong><a href="domainname">Its Me</a></strong>? 

What is the difference between the two above?

like image 780
Codeobsession Avatar asked Sep 16 '11 11:09

Codeobsession


People also ask

Can I add I tag inside a tag?

Nested links are illegal. Links and anchors defined by the A element must not be nested; an A element must not contain any other A elements.

How do you add a strong tag in HTML?

The <strong> tag is used to define text with strong importance. The content inside is typically displayed in bold. Tip: Use the <b> tag to specify bold text without any extra importance!

Can we use h2 tag inside UL tag?

No. If it's list, it has list-items in it.

Should I use strong or B tag?

The text written under <b> tag makes the text bold presentationally to draw attention. The main difference between these two tag is that the strong tag semantically emphasizes on the important word or section of words while the bold tag is just offset text conventionally styled in bold.


1 Answers

<strong><a href="domainname">Its Me</a></strong> is the recommended XHTML syntax, but it doesn't matter.

But there is no real difference between the two. It's like asking what is the difference between
5 + 2 and 2 + 5, there is no difference in logic, just in syntax.

like image 113
AndroidHustle Avatar answered Sep 22 '22 20:09

AndroidHustle