Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between http-equiv="author" and name="author"?

Tags:

html

meta

Hello I'm learning HTML5 and I'm wondering what is the difference between these two meta elements ?

<meta http-equiv="author" content="Jon Smith" />
<meta name="author" content="Jon Smith" />
like image 588
albert180 Avatar asked Mar 31 '16 14:03

albert180


Video Answer


1 Answers

The first is not valid, http-equiv is enumerated, i.e. it has a set of values that are valid for it and author is not one. (Its intended as a way to pass pragma data to the browser such as rendering instructions, not meta data like document properties.)

<meta name="author" content="Jon Smith" /> is valid.

like image 195
Alex K. Avatar answered Oct 03 '22 20:10

Alex K.