If my url is something like: http://www.thisisawebsite.com/page.php#about
How do i make it so when the link is clicked, it’ll go to the header “about”, or anywhere else i so desire?
If my url is something like: http://www.thisisawebsite.com/page.php#about How do i make it so when
Share
You need to define the anchor in your markup (near your ‘About’ header):
Anyone else having a question about this should explore using an
IDattribute on the actual element they want to link to:UPDATE
As mentioned by some in the comments,
nameis a deprecated attribute on theatag:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a