Sto tentando di convalidare questo documento HTML in http://validator.w3.org/#validate_by_input ma sto ricevendo i seguenti errori:Tag di inizio stray HTML in validator?
Riga 3, colonna 47: tag di inizio stallo html.
<!--[if IE 7]><!--><html lang="en" class="ie7"><!--<![endif]-->
Riga 4, Colonna 47: tag di inizio stallo html.
<!--[if IE 8]><!--><html lang="en" class="ie8"><!--<![endif]-->
Riga 5, Colonna 47: tag di inizio stallo html.
<!--[if IE 9]><!--><html lang="en" class="ie9"><!--<![endif]-->
Riga 6, Colonna 46: tag di inizio stallo html.
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->
Questo è il codice HTML sto inserendo:
<!DOCTYPE html>
<html lang="en-US">
<!--[if IE 7]><!--><html lang="en" class="ie7"><!--<![endif]-->
<!--[if IE 8]><!--><html lang="en" class="ie8"><!--<![endif]-->
<!--[if IE 9]><!--><html lang="en" class="ie9"><!--<![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->
<head>
<title>Test</title>
</head>
<body>
</body>
</html>
Tutte le idee dove sto andando male?
Sì. Per chiarire, i tag '' non sono realmente condizionali nel codice dell'OP. Per uno user agent non IE, sono tutti visibili. –
Grazie. Certo - mi sento sciocco ora. Ora funziona perfettamente! – Bonnie