Jump to content


Photo

"<!--" What does it do?


  • Please log in to reply
4 replies to this topic

#1 thekl0wn

thekl0wn
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationPoCo, IN

Posted 04 October 2006 - 02:09 PM

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

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


#2 steveclondon

steveclondon
  • Members
  • PipPipPip
  • Advanced Member
  • 161 posts

Posted 04 October 2006 - 02:11 PM

its to comment out in html.

#3 mATOK

mATOK
  • Members
  • PipPipPip
  • Advanced Member
  • 84 posts
  • LocationToronto, Ontario

Posted 04 October 2006 - 02:11 PM

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
"Not everything that counts can be counted, and not everything that can be counted counts."

W3 Web Tutorials | Check Your html | CSS layout techniques | ALA | Zen Garden | CSS Links

Navs with flavor | CSS Playground | CSS boxes

#4 thekl0wn

thekl0wn
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationPoCo, IN

Posted 04 October 2006 - 02:16 PM

No wonder it looked familiar!  Thanks!


#5 CheesierAngel

CheesierAngel
  • Members
  • PipPipPip
  • Advanced Member
  • 105 posts
  • LocationBelgium

Posted 04 October 2006 - 02:56 PM

its to comment out in html.


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.

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users