1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

correct customer details field names

Discussion in 'HTML, Graphics & Programming' started by Fairly sure the answer is no, Aug 8, 2018.

  1. Fairly sure the answer is no

    Sgarrista

    Joined: Feb 12, 2006

    Posts: 8,835

    Location: Surrey

    i've been told on here that the id's i use for the fields which collect customer details, such as first name, email, post code etc, are incorrect and that there is a standard to use so that autofill forms work better.

    i've had a quick google and can't seem to find what the standard is so hoping you lot can help me out
     
  2. Dup

    Sgarrista

    Joined: Mar 10, 2006

    Posts: 9,645

    Location: East Lancs

  3. Dj_Jestar

    Caporegime

    Joined: Oct 18, 2002

    Posts: 28,238

    Location: Back in East London

    Labels also work as wrappers like so:

    Code:
    <label>Some label text appearing before the element<input type="text" name="email"/>Some label text appearing after the element</label>
    though usually you'd at least <span> the text.