SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Form buttons

  1. #1
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form buttons

    Is there a need for the title attribute on ordinary submit and reset buttons? eg <input type="submit" name="submit" value="submit" title="submit">
    Does any user/form of technology benefit from its use?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    You should use a title attribute on all of your form fields. For one, it will help users who make the most of screen readers (you can stick a description in the title attribute), and it's good for help in regular browsers like IE or Netscape because the "tooltip" that pops up displays the title. Titles just help make your form that much more usable, and don't take long to implement. I'm also fond of accesskeys, which help you move between form fields and links quicker, i.e. alt+s will submit the reply form on this page in Internet Explorer.

    As for your example, I'm more inclined to do something like this:
    Code:
    <input type="submit" name="Submit" value="Submit" title="Submit Form" accesskey="s" />

  3. #3
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks vgarcia. alt + s tho is more used as an accesskey for skipping repetitive links, you might want to consider using another key.

  4. #4
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    talking of title attribute and screenreaders: if you're only going to call it "submit", there's no need for title. screenreaders read out the name of the button instead. other form fields which are not buttons (i.e. text input etc) should have a label associated with them. again, this makes a title superfluous.
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •