0

I created my online portfolio and it's one page, I used anchor tags on the top menu which work perfectly in chrome but in explorer and Firefox when you click the skills tab it lands somewhere in the middle of my work anyone know why a simple tag might not load right in some browsers??

Link to the website with the issue

BrettJ
  • 6,801
  • 1
  • 23
  • 26
Logan Zen
  • 1
  • 1
  • Possible duplicate of [Anchor link landing in wrong position](http://stackoverflow.com/questions/6826741/anchor-link-landing-in-wrong-position) – showdev Oct 05 '16 at 21:09

1 Answers1

1

It seems that you make an anchor with an <a> element with the name parameter. To make an anchor, you need an id.

Example:

<div id="skill"/>

or with a div with some content:

<div id="skill">
...
</div>

The reason is that using the name attribute in the <a> attribute is obsolete since .

Documentation from the MDN:

This attribute is required in an anchor defining a target location within a page. A value for name is similar to a value for the id core attribute and should be an alphanumeric identifier unique to the document. Under the HTML 4.01 specification, id and name both can be used with the <a> element as long as they have identical values.

Mr Lister
  • 45,515
  • 15
  • 108
  • 150