Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Code critique (again)

 
Thread Tools Search this Thread
Old 05-04-2004, 12:32 AM   #1
Default Code critique (again)


I asked previously for comments on this code, but some confusion and
possibly a lost post led to my receiving nothing but a couple of accusations
of trolling. I apologize for the confusion. The link:
http://68.184.224.2:8080/reference/form8001.jsp

It's just bare bones at the moment. I've shown different colored borders so
I can see where my boxes are. I'm not looking for criticism on the layout of
the page. That is already set. The page looks the way it needs to (minus
some CSS decoration, of course). I'm looking for comments on the markup I
used to generate this structure. Is it correct? How could it be better? The
page validates HTML 4.01 Strict at the W3 site.




Ryan Stewart
  Reply With Quote
Old 05-04-2004, 01:59 AM   #2
Toby A Inkster
 
Posts: n/a
Default Re: Code critique (again)
Ryan Stewart wrote:

> http://68.184.224.2:8080/reference/form8001.jsp


Could probably do with some use of <label>.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132



Toby A Inkster
  Reply With Quote
Old 05-04-2004, 02:21 AM   #3
Ryan Stewart
 
Posts: n/a
Default Re: Code critique (again)
"Toby A Inkster" <> wrote in message
news. ..
> Ryan Stewart wrote:
>
> > http://68.184.224.2:8080/reference/form8001.jsp

>
> Could probably do with some use of <label>.
>

Interesting. I didn't even know that tag existed. I've read over its
description at W3 now. Is it widely used? Is it worth the extra bandwidth?
What are the benefits of using it? That page is only a sample of the actual
form which will be dynamically generated and could easily have hundreds of
input elements. Adding label tags to each of those could add several
kilobytes to the file size.




Ryan Stewart
  Reply With Quote
Old 05-04-2004, 07:41 AM   #4
David Dorward
 
Posts: n/a
Default Re: Code critique (again)
Ryan Stewart wrote:

> Interesting. I didn't even know that tag existed. I've read over its
> description at W3 now. Is it widely used?


On webpages? No.
By browsers? Yes.

> Is it worth the extra bandwidth?


Yes.

> What are the benefits of using it?


Bigger click targets (especially for radio buttons and check boxes)
Assistive software gets explit information about what text describes a
field, rather then having to guess.

> That page is only a sample of the
> actual form which will be dynamically generated and could easily have
> hundreds of input elements. Adding label tags to each of those could add
> several kilobytes to the file size.


mod_gzip is quite fun , but if the page is that big already, I would
seriously consider using a multipage form.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>


David Dorward
  Reply With Quote
Old 05-04-2004, 07:44 AM   #5
Toby A Inkster
 
Posts: n/a
Default Re: Code critique (again)
Ryan Stewart wrote:

> Interesting. I didn't even know that tag existed. I've read over its
> description at W3 now. Is it widely used? Is it worth the extra bandwidth?
> What are the benefits of using it?


It is pretty good. The practical benefit for most people is that clicking
in the label text is treated like clicking on the label control. (This is
particularly useful for checkboxes and radio buttons.)

Example:
http://www.nctpregnancyandbabycare.c...questionnaire/

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132



Toby A Inkster
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Access HTML elements in code behind??? nedums_b Software 1 02-07-2008 07:15 PM
Code Monkey want MCTS, Code Monkey take exam Zimri MCTS 0 04-03-2007 10:57 PM
Circumvent Region Code hufaunder@yahoo.com DVD Video 11 01-29-2007 09:51 PM
Probelm For Runing This Code farhad13841384 Software 0 08-03-2006 07:32 AM
.avi files giving region code error Craig Cameron DVD Video 2 03-07-2006 02:49 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46