No need to change to div, just move your id to the svg tag, and it should work just fine.
FYI, the id is used to identify a node in the DOM tree in a fully laid out page that is scrolled to. It is not as if the link is like a "goto" that leaps to that place and starts reading from there on.
So putting the id on the figure tag or its child svg tag makes no difference to what is shown on the screen as a result of the link.
Last edited by KevinH; 01-16-2023 at 10:51 PM.
|