Solved

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

Posted on 2004-10-04
2
1,078 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
Comment Utility
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
Comment Utility
That works.  Thank you.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now