Código PHP:
<script language="JavaScript" type="text/javascript">
<!--
var navegador = navigator.appName;
if (navegador == "Microsoft Internet Explorer"){
document.write("<style type='text/css' media='all'>@import 'ie.css'; </style>");
}else{
document.write('<style type="text/css" media="all">');
document.write('@import "otro.css";');
document.write('</style>');
}
//-->
</script>
Código:
Dice que cierro la etiqueta sin haberla abierto, pero si esta abierta!! 1# Error Line 9 column 83: end tag for element "STYLE" which is not open. ...media='all'>@import 'ie.css'; </style>"); The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. If this error occured in a script section of your document, you should probably read this FAQ entry. ✉ 2# Error Line 13 column 27: end tag for element "STYLE" which is not open. document.write('</style>');
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
Graciass