HTML5 - Web Forms 2
HTML5 - Web Forms 2
com
Advertisements
Web Forms 2.0 is an extension to the forms features found in HTML4. Form elements and attributes in HTML5 provide a greater degree of semantic mark-up than HTML4 and remove a great deal of the need for tedious scripting and styling that was required in HTML4.
Following is the simple example of using labels, radio buttons, and submit buttons:
. . . < f o r ma c t i o n = " h t t p : / / e x a m p l e . c o m / c g i s c r i p t . p l "m e t h o d = " p o s t " > < p > < l a b e lf o r = " f i r s t n a m e " > f i r s tn a m e :< / l a b e l > < i n p u tt y p e = " t e x t "i d = " f i r s t n a m e " > < b r/ > < l a b e lf o r = " l a s t n a m e " > l a s tn a m e :< / l a b e l > < i n p u tt y p e = " t e x t "i d = " l a s t n a m e " > < b r/ > < l a b e lf o r = " e m a i l " > e m a i l :< / l a b e l > < i n p u tt y p e = " t e x t "i d = " e m a i l " > < b r > < i n p u tt y p e = " r a d i o "n a m e = " s e x "v a l u e = " m a l e " >M a l e < b r > < i n p u tt y p e = " r a d i o "n a m e = " s e x "v a l u e = " f e m a l e " >F e m a l e < b r > < i n p u tt y p e = " s u b m i t "v a l u e = " s e n d " >< i n p u tt y p e = " r e s e t " >
url
Copyright tutorialspoint.com