I have a asp.net mvc site with a master page and it has following tag in the head.
<head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
But when I goto view source in any browser, the meta tag is shown as
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Who is adding the / to the end as />
Issue is when the site is validated with w3 validator it shows an error saying that the meta tag should be closed as > not as />. But I cannot find how the /> is created.
Doct type is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Site is online at http://tipila.com if you want to see it for yourself.
I’m totally clueless here. Any help is appriciated.
This happens in both casini and IIS 7
Try removing the
runat="server"attribute from theheadtag.