Hello friends,
how to create links to sections on the same page in html..?
Hello friends,
how to create links to sections on the same page in html..?
If you meant to link HTML page to another website then, then Hyperlinking method can be used.
Hyperlinks are defined with the HTML <a> tag:
syntax:
<a href="url">link text</a> # replace website url with "url" and add desired text with "link text " section.
TuxAndrew
Linux - RedHat,cPANEL CentOS,Ubuntu,Azure/AWS Administrator,
Assistance, Analysis and Diagnosis. Skype: tuxandrew
tuxandrew@aol.com
Linking to a section on another page
Select the button and choose the external link option in the link settings.
Enter the URL of the page where the section exists followed by `#` and the element ID you assigned to that section.
To do this, position your cursor on the page where you would like the link to appear, and then go to Insert > Link. In the window that appears, enter the text you would like to appear as a link, and in the URL Field, enter #targetname, where targetname is the name of your target.
Hi Friends,
The following example shows how to use #top and #bottom with the <a> tag and href attribute to create a link to the top or bottom of the page. This method is similar to using "id," but you don't have to pick a specific element. Click on "Top" or "Bottom" in the Results section to see what happens.
Examples
<a href="#top">Top</a>
<a href="#bottom">Bottom</a>
|
Bookmarks