href="/jump/? code example

Example 1: href="/jump/?

<a href="/learn-html/html-links.html#html_links">Go to the HTML Links in our website.</a>

Example 2: href="/jump/?

<a href="https://en.wikipedia.org/wiki/Main_Page#wikipedia">Go to the main page of Wikipedia .</a>

Example 3: href="/jump/?

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
    <style>
    .main-content {
      height: 100vh;
      text-align: justify;
    }
    </style>
  </head>
  <body>
    <h2 id="Lorem_Ipsum">Lorem Ipsum</h2>
    <p class="main-content">
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
    </p>
    <p>Go to the
      <a href="#Lorem_Ipsum">top</a>.
    </p>
  </body>
</html>

Example 4: href="/jump/?

<a href="#anchor-name">Jump to the part of the page with the “anchor-name” id </a>

Example 5: href="/jump/?

<a id="anchor-name">The  name where you want to jump</a>

Example 6: href="/jump/?

Create the hyperlink that'll take you to that text or object.
Now, go to the part of the post you'd like to have the hyperlink in. You'll need to add a typical hyperlink HTML markup, but in the part where you'd typically include a URL, you'll include the pound symbol (#) then the name of the object you're linking to. Here's what it looks like:

<a href="#INSERT_YOUR_OBJECT_NAME_HERE">Click here to see the content below.</a>

Example 7: href="/jump/?

Place that complete opening <a> tag from above before the text or object you want to link to, and add a closing </a> tag after.
Doing this sets the location of link. This is what your code should look like now:

<a id="INSERT_YOUR_OBJECT_NAME_HERE">The object you want to link to.</a>

Tags:

Misc Example