Solved

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

Posted on 2004-10-04
2
1,088 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

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…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

763 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