Skip to content
WJunction - Webmaster Forum

Cool HTML5 form features

Status
Not open for further replies.

deliteblogger

Established Member
331
2011
116
I've just learned about these new HTML5 input stuff and found it interesting.
Quick and easy ways to get javascript-like effects if you don't mind about IE, as it doesn't support these yet.

Required fields
Code:
<input name="movie" type="text" [B]required[/B] />
required_gallery.png


Placeholder
Code:
<input type="text" name="username" [B]placeholder="This is a placeholder"[/B] />
placeholder1.jpg

You can even style it with CSS3.

Autocomplete-like input
Code:
<datalist id="country">
   <option value="Afghanistan">
   <option value="Albania">
   <option value="Algeria">
   <option value="Andorra">
   <option value="Angola">
</datalist>
datalist.png


More info and demos here, or just google it.
 
Last edited:
Status
Not open for further replies.

About the author

D
Established Member · Joined
331
Messages
116
Reactions
43
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom