Solved

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

Posted on 2004-10-04
2
1,090 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

Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

Question has a verified solution.

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

Suggested Solutions

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 article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

739 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