July 29, 201115 yr Give the element you want to link to an id attribute and create a link like this: <a href="#someSection">This is the link text.</a> //This might link to: <h2 id="someSection">This is a header!!<h2> Also, if you place the #insertidname at the end of a hyperlink, the browser will automatically move to that part once the page has loaded.
July 30, 201115 yr Tried that but the software I'm using didn't consider the link valid. Sorry, I didn't close the h2 tag properly. >.< Edited July 30, 201115 yr by Sam Lockyer
August 2, 201115 yr You can anchor to *any* html element that has an id in it. Also, if the link to the anchor doesn't have sufficient vertical space between it and the id being anchored to, you won't see any noticeable difference in the page - iow, the page won't 'jump' to the anchor.
Create an account or sign in to comment