Wednesday, September 5, 2012

html internal links

Linking same page for different sections for html file.

Basically, page jumps are just links such like the element , but links that point to a certain part of a document.

Page jumps are done by using the name attribute of the a element. So, say you wanted a link to the top of your page, you would add an anchor like this near the top of your document (inside the element, of course):



There doesn’t need to be anything between the opening and closing tags. Then, in the place you want to place the link, put

link to section A......caller

Notice the hash mark (#). That tells the browser that it’s a section of a page it’s looking for, and not a separate page or folder. So just make a link to the section you named earlier by putting a # in front of whatever name you gave it. Always remember, the # goes in the href attribute’s value, not in the name.



Example

A named anchor inside an HTML document:
Useful Tips Section

Create a link to the "Useful Tips Section" inside the same document:
Visit the Useful Tips Section

No comments:

Post a Comment

人生,只是一个过程。
Life Is a process.

相爱,是接受。接受,是爱的其一表现。
To love,is to accept. Acceptance is a form of love.
生活;就是将生与死,连接的一条线
Between live and death, there is a line connecting them both, which is call Life
思想决定行动,行动决定习惯,习惯决定品德,品德决定命运。
sow a thought, reap an action;sow an action, reap a habit;sow a habit, reap a character; sow a character, reap a destiny.
相信,就会还有。
不相信, 就连有得都变没有。.
希望。。在人间!
"事情是这样,就不会是别样“。。
很多事情,因为某些障碍,我表达和反应不来,但我真得很用心去想和做。。。

Thanks for visiting!