-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
  • 32,893
  • 9
  • 77
  • 89
Vikas Verma
  • 3,626
  • 6
  • 27
  • 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
  • 16,135
  • 16
  • 55
  • 61