Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > html-syntax

Reply
Thread Tools

html-syntax

 
 
Rune RunnestÝ
Guest
Posts: n/a
 
      05-02-2005
This code seems to work quite OK:
<HTML><HEAD><TITLE></TITLE></HEAD><BODY>
<FORM ACTION=goodLogin.jsp METHOD=POST>
<BR>User Name:<INPUT TYPE=TEXT NAME=username>
<BR>Password: <INPUT TYPE=TEXT NAME=password>
<BR><INPUT TYPE=SUBMIT VALUE=Submit>
</FORM>
</BODY></HTML>

but I thought it should be written like this:
<HTML><HEAD><TITLE></TITLE></HEAD><BODY>
<FORM ACTION="goodLogin.jsp" METHOD="POST">
<BR>User Name:<INPUT TYPE="TEXT" NAME="username">
<BR>Password: <INPUT TYPE="TEXT" NAME="password">
<BR><INPUT TYPE="SUBMIT" VALUE="Submit">
</FORM>
</BODY></HTML>

Is the one way with the "..." more recommended than the other way without ?

Regards
Rune


 
Reply With Quote
 
 
 
 
Oli Filth
Guest
Posts: n/a
 
      05-02-2005
Rune RunnestÝ wrote:
> This code seems to work quite OK:
> <HTML><HEAD><TITLE></TITLE></HEAD><BODY>
> <FORM ACTION=goodLogin.jsp METHOD=POST>
> <BR>User Name:<INPUT TYPE=TEXT NAME=username>
> <BR>Password: <INPUT TYPE=TEXT NAME=password>
> <BR><INPUT TYPE=SUBMIT VALUE=Submit>
> </FORM>
> </BODY></HTML>
>
> but I thought it should be written like this:
> <HTML><HEAD><TITLE></TITLE></HEAD><BODY>
> <FORM ACTION="goodLogin.jsp" METHOD="POST">
> <BR>User Name:<INPUT TYPE="TEXT" NAME="username">
> <BR>Password: <INPUT TYPE="TEXT" NAME="password">
> <BR><INPUT TYPE="SUBMIT" VALUE="Submit">
> </FORM>
> </BODY></HTML>
>
> Is the one way with the "..." more recommended than the other way without ?
>


http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2


--
Oli
 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      05-02-2005
On Mon, 2 May 2005 15:48:18 +0200, "Rune RunnestÝ" <(E-Mail Removed)>
wrote:

>Is the one way with the "..." more recommended than the other way without ?


Yes.

You don't always need the quotes. But it's never bad to use them, and
sometimes you _must_ use them (depending on the content inside them).
For XML or XHTML work, they're always needed, so putting them in is a
good habit to get into anyway.

I suggest you take a read of the W3C website and the original HTML
specifications.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments