View Full Version : invalid markup question

03-06-2008, 02:28 PM
I have 4 errors on my page markup test and the problem is this code here.
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="IE.css" media="screen" />

<!-[if !IE]>
<link rel="stylesheet" type="text/css" href="firefox.css" media="screen" />

everything else is fine but I get character "<" is the first character of a delimiter but occurred as data.

endif" is not a reserved name.

XML Parsing Error: StartTag: invalid element name.hope someone can help me with this.

03-06-2008, 03:01 PM
Comments are written like this, compare it to your code:
<!-- This is my comment -->

Pay attention to using 2 dashes, and also how a comment is ended.

Further than that you need to include the whole document, it is not 100% clear what kind of doctype you are using.

03-06-2008, 07:56 PM
Thankyou, that has fixed it.