how to jump to id in html

Solutions on MaxInterview for how to jump to id in html by the best coders in the world

showing results for - "how to jump to id in html"
Carenza
18 Oct 2016
1<!DOCTYPE html>
2<html>
3  <head>
4    <title>Title of the document</title>
5    <style>
6    .main-content {
7      height: 100vh;
8      text-align: justify;
9    }
10    </style>
11  </head>
12  <body>
13    <h2 id="Lorem_Ipsum">Lorem Ipsum</h2>
14    <p class="main-content">
15      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.
16    </p>
17    <p>Go to the
18      <a href="#Lorem_Ipsum">top</a>.
19    </p>
20  </body>
21</html>