Deprecated: Required parameter $location follows optional parameter $post_types in /home1/mybravet/public_html/wp-content/plugins/monarch/monarch.php on line 3783

Warning: session_start(): Session cannot be started after headers have already been sent in /home1/mybravet/public_html/wp-content/themes/Divi Child Theme/header.php on line 1
How to link to a specific section on the same page or on another page | WordPress Developer Philippines How to link to a specific section on the same page or on another page | WordPress Developer Philippines
Select Page

We are going to use a HTML linking tag which is

<a></a>

Normally when you add a link to a text you have this syntax

<a href="http:///www.YouAreLinkingHere">Click Here</a>

Now we are going to use the same syntax but we are going to add few properties to achieve this goal

Linking to a specific section on the same page

<div id="page"></div>
<a href="#page">Click Here</a>

Linking to a specific section on another page

<div id="page"></div>
<a href="http:///www.YouAreLinkingHere#page">Click Here</a>

 

Pin It on Pinterest

Share This