Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2020 09:39 PM
NOTE: The name attribute has been deprecated in HTML5 for anchor tags, instead use the identifier tag when making the target.
Example:
- Create the target:
<section id=‘awesome-section’>
<h2 id=‘awesome-section-header’>My Super Awesome Section Header</h2>
</section>
- Where the<h2></h2>can be whatever element that you’re linking to.
- Here you could link either to the start of the section, using http://page-url.com/#awesome-section) or to the header via http://page-url.com/#awesome-section-header
- page-url.com#awesome-section is the same as page-url.com/#awesome-section
- Reference that target within the link with something like:
Please click <a href=“#awesome-section'>here</a> to go to 'My Super Awesome Section.'