Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put an anchor tag inside an anchor tag [duplicate]

Tags:

html

anchor

I have a row, which is inside an anchor tag. Now in that row I want to add another clickable component (an anchor tag). How do I do it?

like image 606
user1027112 Avatar asked Nov 26 '25 15:11

user1027112


1 Answers

You don't do it within an anchor.

Anchor elements are not nestable.

The HTML 4 DTD has this:

<!ELEMENT A - - (%inline;)* -(A)       -- anchor -->

The -(A) means that A elements are explicitly not allowed within A elements.

like image 175
Oded Avatar answered Nov 29 '25 11:11

Oded



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!