Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

code between /* and */ running sucessfully ???? why

 
abhay jain
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a simple concept is that anything between /* and */ sign is treated as comment ,
how this code (given below) works in an applet successfully ???



/*
<applet

code=Hellojava
width=400
height=200>

</applet>

*/
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you're confusing Java comments /* ... */ with HTML comments <!-- -->
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!