Solved

How to "Comment Out" Section of HTML Code - Other Comments Included <!-- * -->

Posted on 2004-10-04
2
1,087 Views
Last Modified: 2012-03-15
There is a section of html code that I need to disable while debugging.  The <Comment> tag would be nice if all browsers supported it.  Since I can't "nest" the <!-- --> tags I don't know what to do.  Suggestions and/or discussion are appreciated.

0
Comment
Question by:WizeOwl
2 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 125 total points
ID: 12223328
Hi WizeOwl,

What's wrong with <!-- --> ? You could do this to surround all your script to comment out:

<script>
/*
Your HTML
*/
</script>

Regards,
Zyloch
0
 

Author Comment

by:WizeOwl
ID: 12223894
That works.  Thank you.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question