Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Html tags for applet

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
It might be a wrong question to ask here. Actually, can somebody tell me about the HTML code used to display the applet.
like:
which are the different tags;
does the sequence matter;
what are the mandatory tags;
Actually I've only Phillip Heller book. That doesn't mention this thing,anywhere. I tried to find it on net, but no help.
Also, if anybody knows any related URL, it will be vry helpful to me.
Looking forward for help
Shikhar
 
Thunthu Ganapathy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the minimal set of tags that required to run an applet. Test is your class.
<HTML>
<BODY>


<APPLET code="Test" height=500 width=500>
</APPLET>

</BODY></HTML>
Hope this helps.
Thanks,
Thunthu.
 
Thunthu Ganapathy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops. Why the HTML codes are not getting displayed?. Am I missing something?.
Thunthu.
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thunthu,
This discussion forum software will interpret all HTML tags. That's the reason for the above display of your post. I purposly introduced a space as 2nd char in all HTML tags of your post.
Shikar,
Please remove the space char after '<' char in all the HTML tags in your original .html file where you are going to put the applet tags.
regds
maha anna
< HTML>
< BODY>

< APPLET code="Test" height=500 width=500>
< /APPLET>

< /BODY>
< /HTML>

[This message has been edited by maha anna (edited July 17, 2000).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Mana
Thanks for help.
But what is correct
code = "Test"
or
code = "Test.class"
Anyway thanks
I know that there are some more parameters we can use apart from code, width and height.
can anybody tell me about that?
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shikhar,
The following is the syntax for the < APPLET> tag. We can give either as "CODE=Test" OR "CODE=Test.class". When you have doubts like this just code them in a .html file and open with a browser like Netscape or Internet Explorer. If everything is ok, then we can use such a tag. This is how myself test and remember things. Just a thought.
Also since our discussion is more of Applets , and Applets are NOT included in SCJP exam, I think it is more appropriate to go to Applets forum and discuss it over there. So I am closing this thread.
regds
maha anna
< APPLET<br /> ALIGN="TOP | MIDDLE | BOTTOM | LEFT | RIGHT"<br /> ALT="alternative text"<br /> ARCHIVE="URL of archive file"<br /> CLASS="class name(s)"<br /> CODE="URL of Java class file"<br /> CODEBASE="URL for base referencing"<br /> HEIGHT="pixels"<br /> HSPACE="pixels"<br /> ID="unique alphanumeric identifier"<br /> NAME="unique name for scripting reference"<br /> OBJECT="file name"<br /> STYLE="style information"<br /> TITLE="advisory text"<br /> VSPACE="pixels"<br /> WIDTH="pixels">
<PARAM> elements
Alternative content
< /APPLET>

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic