Sunday, January 28, 2018

(fragment) jump in the same page

 <h1 id="top">Using fragment identifiers</h1>
<p><a href="#one" title="section one">Link to Section 1</a></p>
      <p><a href="#two" title="section two">Link to Section 2</a></p>
      <p><a href="#three" title="section one">Link to Section 3</a></p>
<p>Link to <a href="destination.htm#two" title="destination">Section 2</a> of the destination.htm page</p>

out side source opening a new page
 <p><a href="https://www.w3.org/TR/html5/browsers.html#navigating-to-a-fragment-identifier" title="W3C Fragment Identifier" target="_blank">
        Fragment identifiers </a>as defined by the W3C</p>

 <h3 id="one">Section 1</h3>

  <h3 id="two">Section 2</h3>

  <h3 id="three">Section 3</h3>

<a href="#top" title="back to the top">Back to top</a>

No comments:

Post a Comment