Jump to content

Archived

This topic is now archived and is closed to further replies.

thekl0wn

"<!--" What does it do?

Recommended Posts

I've tried searching on here, but can't seem to figure out exactly what this line does: [code]<!--[/code] ???

I see it all the time, and it's starting to bug me!

Share this post


Link to post
Share on other sites
It is an html comment... kinda like /*

If you wanted to comment out html you would use <!-- to begin the comment and --> to end it

Share this post


Link to post
Share on other sites
[quote author=steveclondon link=topic=110481.msg446668#msg446668 date=1159971067]
its to comment out in html.
[/quote]

I's also used alot in javascripts in your html file.
When your browser doesn't support javascript the script body will be interpretated as comment else
these lines will be ignored.

[code]
<s cript language='JaveScript'>
<!-- Start
..........
// End-->
</s cript>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.