You should read up on HTML anchor tags
You need to link to an anchor
, which is defined as a name
or ID
in your HTML:
%a{href: "#service"}
.service{ id: "service" }
As I was researching this answer, I actually discovered you shouldn't use name
any more, but ID
instead (HTML5 doesn't support name
):
name Not supported in HTML5. Use the id attribute instead. Specifies the name of an anchor