How to use http-equiv and name attribute at the same time?

275 views Asked by At

I was researching about meta tags in HTML and I ended up on a website that suggested that I don't set the name and htt-equiv attribute at the same time. I read somewhere that if I need to support IE8 OR IE9 then it's recommended to use the http-equiv attribute with X-UA Compatible value. My website needs to be supported by older versions of IE so i use the following line of code:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

But at the same time, i also want to provide extra information such as description of my webpage and also specify keywords. Those are set by using the name attributes. Like this:

<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="">

But according to several webpages, I cannot use the http-equiv and name attributes at the same time. So how do I ensure compatibility with older versions of IE and extra information about the webpage at the same time?

I'm quite confused, please enlighten me.

0

There are 0 answers