HTML href attribute functionality

I am developing a carousel on my custom page but when I use href="#pointToSomeID" it takes me to a new url as localhost:8000/desk#pointToSomeID, why is that so? this is not normal html behavior