-1

I am stuck on one sentence while reading about meta tag in html that "If the http-equiv attribute is set, the name attribute should not be set" . I've done search about this but I couldn't find any reason behind this.

Would anyone tell the reason behind this?

Scimonster
  • 30,695
  • 8
  • 67
  • 84
Vikas Verma
  • 3,064
  • 6
  • 23
  • 40

1 Answers1

2

The http-equiv you can think of it like an instruction for the browser (refresh, Set-Cookie, expiers)...by setting an http-equiv property you are changing browser behavior.

For name attribute, on the other hand, you are simply describing something (title, keywords, etc.).

An action and a description are different types of ideas.

Calvin Froedge
  • 14,657
  • 12
  • 50
  • 60