Server Side: How do i create links to sections on the same page in HTML?
started by Jeff Harvey on May 14, 2012 — RSS Feed
Mike Crone
Posts: 27
The NAME Attribute
The name attribute allows an anchor tag to be used to point to a specific place on a web page. You might link from the bottom of a long page to the top of the page, or link from an item in a Table of Contents to the corresponding item where it appears on the page.
The syntax for using the name attribute is like this:
<a name="top"></a> » or...
<a name="TOC">Table of Contents </a>
You can leave out the text between the "a" tags or use them to surround some text. It will not be clickable, however, because this is not the link, this is the anchor a link will point to.
In the first example you would link to the top of a page from the bottom of a long page, and maybe other points in between so your visitors could jump back to the top instead of scrolling.
Or, you might place a named anchor as shown in the second example around the Table of Contents then link to it from strategic places down the page so your visitors can quickly jump to the Table of Contents after reading an article.
To link to that named anchor you'd code your link like this:
<a href="#TOC">Table of Contents</a>
WPDFD Forum Moderator
Suresh Gupta
Posts: 63
Mike Crone said:
The NAME Attribute
The name attribute allows an anchor tag to be used to point to a specific place on a web page. You might link from the bottom of a long page to the top of the page, or link from an item in a Table of Contents to the corresponding item where it appears on the page.
The syntax for using the name attribute is like this:
<a name="top"></a> » or...
<a name="TOC">Table of Contents </a>
You can leave out the text between the "a" tags or use them to surround some text. It will not be clickable, however, because this is not the link, this is the anchor a link will point to.
In the first example you would link to the top of a page from the bottom of a long page, and maybe other points in between so your visitors could jump back to the top instead of scrolling.
Or, you might place a named anchor as shown in the second example around the Table of Contents then link to it from strategic places down the page so your visitors can quickly jump to the Table of Contents after reading an article.
To link to that named anchor you'd code your link like this:
<a href="#TOC">Table of Contents</a>
Hello Mike Crone,
Thanks for providing the ppc Tips.it's such a helpful information
---------------
web content writing | social bookmarking service
Jonas Marsh
Posts: 38
Definitely got a lot of things to learn. I don't quite understand the coding part of a website.
Learning the basics of web designing.
Josh Cooper
Posts: 3
@Jonas -
what are you having problems with or not understanding? This is what we are here for, to answer questions you might have. It is not extremely important to be very knowledgeable these days in HTML, PHP, etc... because there are so many CMS out there that it makes it pretty easy to design and create a site. It does come in pretty handy though to edit something really quickly in HTML. Please let us/me know what you art not understanding, I will do my best to help you out. If you would like to see me site and ask any questions about it here is the site:. I own a web design, and seo company, so I have some great staff that can answer some of your questions.
My Blog = http://www.seojus.com/blog
Srikanth N
Posts: 2
Creating a link is simple in hmtl.
create link using:
< a href=" link">
Thank u,
Regards
Srikanth
cheapviagramedics.com![]()
Sanjay Sharma
Posts: 21
The primary step is to situated a anchor. The stay is the spot on the page where you need the client to have the capacity to bounce to. Select the HTML instrument and click the spot on the page where you might want to set the stay. At that point, drop in the accompanying code in the Body HTML tab
PrestaShop Development
You must login to reply

