Many from you,must have seen,that at the end of my blog,there's an option "Move To Top",which lets you directly to the top of that page,without scrolling up your mouse,or you may have seen,that on various F.A.Q pages,if the questions are given first,then whenever you click on any question,you get directed to the answer of that particular question.
In this article,i m gonna tell you,how to create a "Move To Top" Button,and you can also use it,if you want to create the F.A.Q page.
Before going forward,the most important thing or tag we gonna use in this tip,is the "Named Anchor Tag".Now the question strikes,what is that?
All you need to know is,Its just an another HTML tag,with the structure given below:
<a href="#(any text)>Any Text</a>
Now how to create the "Move To Top" Button.
for that,add the below code,just before the </body> tag.
<a href="#top">Move to Top</a>
and add the below code,just below the opening of the <body> tag.
<a name="top"></a>
note one thing,that the name and the text after # must be the same,or else it will not work,and if you want to add any image,instead of the text "Move to Top",you can use the image tag.
0 comments:
Post a Comment