Link to Internal Sections of a page with anchor Elements

How to Link to Internal Sections:-
 Anchor element can also be used to create internal link to jump to different section within a web page. To create a internal link you assign a link's href attributes to a hash symbol "#" and the value of the id attributes for the element . You need also to give  same id to element which you are want to link.To Link to Internal Sections of a page with anchor Elements follow the below steps:
Step1: Open your text editor or Notepad.
Step2: Write the below code in your editor or notepad.
Step3: Save your document in etc.html format.
Step4: Open in Browser.

For Example:

<html>
<head>
<title> wikibooster </title>
</head>
<body>
<h1><a href="#go-internally" >This is wikibooster </a> </h1>
<p id="go-internally">  wikibooster is website learning platform , you can learn here how to create a website.</p>
</body>
</html>


Output:















Please Share To Other:

Post a Comment

0 Comments