By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

comment

P: 74
hi,

i had a comment at the top of my html file like this:

Expand|Select|Wrap|Line Numbers
  1. <!-- Comment here -->
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6. <link href="style/sgstyle.css" rel="stylesheet" type="text/css" media="screen" />
  7. <title>Webpage...</title>
  8. </head>
  9.  
  10. <body>
  11.  
  12. <div id="container">
  13. <div id="header">
and it totally screwed my page. can anyone tell me this is?

cheer
philleep
Apr 23 '07 #1
Share this Question
Share on Google+
3 Replies


KevinADC
Expert 2.5K+
P: 4,059
take the comment out or move it. Obviously it can't go there.
Apr 23 '07 #2

drhowarddrfine
Expert 5K+
P: 7,435
I assume this is in IE? If you put anything before the doctype in IE, it will go into quirks mode. As stated, just remove that line.
Apr 23 '07 #3

P: 74
i guess i thought a comment could go anywhere...
and yes it was IE - firefox wouldnt mess up like that...
cheer
philleep
Apr 27 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.