The standard tutorials teach how to use the hashtag and the anchor name to link to page sections, like so:
<li><a href="#section2">Section 2</a></li>
<h1>Title</h1>
<a name="section1"></a><h2>Section 1</h2>
<p>Blah bla bla bla bla.</p>
<a name="section2"></a><h2>Section 2</h2>
<p>Blah bla bla bla bla.</p>
How do I make a page jump where I can embed the link to the page section using a fully qualified url? For example:
<a href="http://www.mydomein.com/page1?section=section2">Please read section 2</a>
The application is a signup notification email.
Any word after the question mark (?) in a URL is considered to be a parameter which can hold values. The value for the corresponding parameter is given after the symbol "equals" (=). Multiple parameters can be passed through the URL by separating them with multiple "&".
URL parameters are made of a key and a value, separated by an equal sign (=). Multiple parameters are each then separated by an ampersand (&).
URL parameter is a way to pass information about a click through its URL. You can insert URL parameters into your URLs so that your URLs track information about a click. URL parameters are made of a key and a value separated by an equals sign (=) and joined by an ampersand (&).
Using your example, the link would be:
<a href="http://www.mydomein.com/page1#section2">Please read section 2</a>
Also note that the <a name="section2"></a>
is superfluous. You could simplify to
<h2 id="section2">Section 2</h2>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With