View Full Version : IE won't show a page with HTML Comments
11-22-2011, 03:00 PM
Every time I add an HTML comment to my code, IE will not render the page. As soon as I remove the comment, IE displays the page. What's the deal?
Check it out. The only difference between these pages is one single HTML comment.
You have started commenting your CSS code, which is not a bright idea :)
As a result, everything is messed up
11-22-2011, 03:50 PM
To elaborate, you "start" an html comment, but dont seem to finish it. A valid html comment is this:
<!-- Commented HTML goes here -->
But, you're trying to comment some embedded styles correct? A valid css comment is this
/* Commented Styles goes here */
11-22-2011, 03:58 PM
Thanks! That fixed it. I didn't see that comment thingy there. I think it was from something I cut/pasted.
11-22-2011, 04:19 PM
Like my tagline says, you should validate often during development. Check out the links down there about validation.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.