Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1104
  • Last Modified:

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

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
WizeOwl
Asked:
WizeOwl
1 Solution
 
ZylochCommented:
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
 
WizeOwlAuthor Commented:
That works.  Thank you.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now