Jesse20
Tera Contributor

NOTE:  The name attribute has been deprecated in HTML5 for anchor tags, instead use the identifier tag when making the target.

Example:

  1. 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

 

  1. Reference that target within the link with something like:

Please click <a href=“#awesome-section'>here</a> to go to 'My Super Awesome Section.'