What is the meaning of # in URL and how can i use

2019-01-07 07:31发布

I often found some URL which looks like following:

www.something.com/some_page/#someword

after writing this page some_page will be open and then scroll will be set so that I can see that "someword" at beginning of my screen.

I don't know what the meaning of "#" is. As soon as I make #someotherword with any url it works sometimes and sometimes it doesn't.

I am not getting what # is in the URL. Is it any functionality of any language or url or something else ?

Edit: It might be possible that you consider my question newbish but I am not into web-designing technologies, I am simply curious about it.

Edit: I am not the owner of some website but when I am concern with some particular portion of some web-page then how can I give the url with # and give that url to another ?

I am concern with answer portion on my profile then I will prepare the URL just below and will give it to somebody.

https://stackoverflow.com/users/775964/mr-32#answers

This works but some time it doesn't.

https://stackoverflow.com/users/775964/mr-32#tags

That doesn't work.

I am just a user and I don't want to know in which language the website is build.

标签: url
7条回答
看我几分像从前
2楼-- · 2019-01-07 08:25

To use this, use the <section id="section_name"><!-- THINGS IN HERE --></section>. Then, give reference to the section name beginning with #. <a href="#section_name">Click here to go to the section.</a>

查看更多
登录 后发表回答