![]() ![]() The key to an anchor link is the unique href attribute value. With this, we can create an anchor link that jumps to this heading element. This is an example HTML snippet for a heading (h2 element) with an anchor ID that we can use for an anchor link (ID in blue): Example Heading To link to a specific piece of content (the anchor), you’re going to have to give that anchor element a unique ID so that the anchor link has a location to jump to. This link will “jump” to the anchor element wherever it is on the page. ![]() A Link to the element with the corresponding anchor ID (the anchor link). ![]() This is the element you wish to jump to on the page.
0 Comments
Leave a Reply. |