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" />
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.
© 2022 - 2024 — McMap. All rights reserved.
http-equiv
as againstname
)? – Hedwig