I’m completely new into coding and so far I have finished some HTML5 basic courses. I then started to create a blog in order to put my knowledge into practice and learn by doing.
In this blog I created a navbar with some links at the top . These links I mentioned later in some of the articles and I was wondering if it’s possible to add an ID to the
<a> tag in order to referred it every time I need it, like when referring to a div id with the #, instead of writing the whole path on the href.
I tried it like this, but it doesn’t work
<a href="./aboutme.html" target="_blank" id="aboutme">About me</a>
<p>Curious about who is behind this lines? Then check the
<a href="#aboutme" target="_blank">"About Me"</a> section.
Thanks in advance!