Adding an Attribute to the New HTML5 Input Tag

by Allisa Carter on January 12, 2012

Post image for Adding an Attribute to the New HTML5 Input Tag

Codec I remem­ber when it was impres­sive to just have a web­site. Now it’s not enough to just have a site — you need to have an awe­some one to be noticed. In fact, it’s almost worse to have a bad web­site than none at all, so it’s def­i­nitely worth your while to learn how to put together a great one. Sally Cox’s newly released course HTML5 for Begin­ners: Learn by Video (pro­duced in part­ner­ship with our friends at Peach­pit Press) is a great resource to help you do just that. By the end of the course you’ll have a solid under­stand­ing of HTML5 and Cas­cad­ing Style Sheet (CSS) con­cepts, how to build a wire­frame and add text and images, and how to work with inter­ac­tive forms and mul­ti­me­dia. The final prod­uct is your own blog site built from scratch.

Speak­ing of web­sites, isn’t it frus­trat­ing when you can’t fig­ure out what a web form field is ask­ing you for? Or when you keep get­ting it bounced back to you because even though you pro­vided the right infor­ma­tion, it was in the wrong for­mat? When that hap­pens to me, I often just give up alto­gether and move on to another site — which is not what you want for your own projects. In this free les­son Sally teaches you how to avoid this prob­lem by using a new HTML5 form field called an Input Ele­ment to add a text hint as an attribute to your forms. That way users can see sam­ple text or instruc­tions in your text input fields that will dis­ap­pear auto­mat­i­cally when any­thing is typed into the field. So help­ful! Take a look and see how easy it is to create.

Comments on this entry are closed.

Previous post:

Next post: