Discussion:
How to Execute HTML Code
(too old to reply)
Jazzkat
2005-03-01 00:56:30 UTC
Permalink
Hi Folks,

I am trying to learn HTML and when I try to execute the following code, the
code itself shows up and not the expected image. Please help me.

<HTML>
<BODY>
<FORM ACTION='/servlet/example/NameForm' METHOD='POST'>
<P> First name:
<INPUT TYPE='text' size='20' NAME='first'></P>
<P>Last name:
<INPUT TYPE='text' size='20' NAME='last'></P>
<INPUT TYPE='submit' VALUE='send'>
</FORM>
</BODY>
</HTML>
Steve Sundberg
2005-03-01 10:16:19 UTC
Permalink
Post by Jazzkat
Hi Folks,
I am trying to learn HTML and when I try to execute the following code, the
code itself shows up and not the expected image. Please help me.
<HTML>
<BODY>
<FORM ACTION='/servlet/example/NameForm' METHOD='POST'>
<INPUT TYPE='text' size='20' NAME='first'></P>
<INPUT TYPE='text' size='20' NAME='last'></P>
<INPUT TYPE='submit' VALUE='send'>
</FORM>
</BODY>
</HTML>
What image? All you have are text fields and a submit button.
Jazzkat
2005-03-01 16:22:42 UTC
Permalink
The image is that of the form with the text boxes and the button.
Post by Steve Sundberg
Post by Jazzkat
Hi Folks,
I am trying to learn HTML and when I try to execute the following code, the
code itself shows up and not the expected image. Please help me.
<HTML>
<BODY>
<FORM ACTION='/servlet/example/NameForm' METHOD='POST'>
<INPUT TYPE='text' size='20' NAME='first'></P>
<INPUT TYPE='text' size='20' NAME='last'></P>
<INPUT TYPE='submit' VALUE='send'>
</FORM>
</BODY>
</HTML>
What image? All you have are text fields and a submit button.
Steve Sundberg
2005-03-03 11:10:58 UTC
Permalink
Post by Jazzkat
The image is that of the form with the text boxes and the button.
Well, I pasted the code and viewed it on my local drive in both IE and
Firefox, and it looked fine to me.

What are you specifically doing on your end to view the file? Are you
giving the file a proper extension (htm, html)? Are you viewing the
file in IE or Firefox online or from your local drive?
DLU
2008-08-15 01:31:40 UTC
Permalink
Post by Jazzkat
Hi Folks,
I am trying to learn HTML and when I try to execute the following code, the
code itself shows up and not the expected image. Please help me.
<HTML>
<BODY>
<FORM ACTION='/servlet/example/NameForm' METHOD='POST'>
<INPUT TYPE='text' size='20' NAME='first'></P>
<INPUT TYPE='text' size='20' NAME='last'></P>
<INPUT TYPE='submit' VALUE='send'>
</FORM>
</BODY>
</HTML>
What are you using to view it?
You need to save it as a file, then open it with a browser.

Loading...