Question: can href have an id?
Answer: Yes. If the href is a # flowed by an element id it is what is called an anchor link. It will get you to the element with the given id in the same page.