HTML 5 : New features

Discussion in 'HTML & Website Design' started by snapdeveloper, Nov 10, 2010.

  1. #1
    A new placeholder attribute can be specified on the input and textarea elements. It represents a hint intended to aid the user with data entry. <input type=email placeholder="a@b.com">

    gonagpur.com
     
    snapdeveloper, Nov 10, 2010 IP
  2. philst18

    philst18 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What exactly does it do? Is it like 'alt' in images?
     
    philst18, Nov 11, 2010 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    It pre-fills the box with the supplied text.
     
    drhowarddrfine, Nov 11, 2010 IP
  4. ezcodez

    ezcodez Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Like a value but onClick it disappears and if no edit takes place repopulates the box when clicked out, saves using the javascript method
     
    ezcodez, Nov 11, 2010 IP
  5. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #5
    Really, isn't HTML5 just Grand......!!! In general HTML5 just puts a smile on my face and makes feel all warm and fuzzy inside..... :)

    Cheers!~
     
    workingsmart, Nov 11, 2010 IP
  6. →» ρяιη¢є «←

    →» ρяιη¢є «← Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    HTML5 IS Cool ........
     
  7. philst18

    philst18 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok, so that's not SUCH a big deal. It can easily be done with previous html.
     
    philst18, Nov 12, 2010 IP
  8. craig84

    craig84 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I prefer not using HTML 5 for now. I'll wait until they decide it is supported by the most of the browsers.
     
    craig84, Nov 15, 2010 IP
  9. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #9
    Browser support comes first. THEN the standard. Everything you see in the HTML5 spec existed in at least one browser before it wound up in the spec. Standards bodies rarely invent anything.
     
    drhowarddrfine, Nov 15, 2010 IP