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" />
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With