Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

WDS19 - The Last Thing About Forms

In the last Article we learned:
  • Some Input fields in forms
  • Important attributes to enhance input fields
In this article, we will cover remaining elements of form excluding that we covered in last 3 articles. Let's begin...

The

This defines the drop-down list in HTML form. Inside of element each drop-down option is added using element.  If you want an option to be selected by default, then add selected attribute to it. You can also change a number of visible items instead of the default one by specifying size attribute in the tag. To enable the user to add multiple options, use multiple attributes in the tag. The user has to select multiple options using holding down Ctrl in Windows or Command in Mac.

The

This defines multi-line input field that is text area. Following attributes are used:
  • rows : Visible number of lines in textarea
  • cols : Visible width of the text area
The user can change this size by using the slider at the right-hand corner of the text area.

That's all for forms and we have covered pretty much everything you will ever need in forms. I am stopping today on this and Tommorrow we will start with something new and interesting in HTML that you will surely love to add in your web pages to enhance them.
Till the #keepCoding.
 


This post first appeared on The Coding Express, please read the originial post: here

Share the post

WDS19 - The Last Thing About Forms

×

Subscribe to The Coding Express

Get updates delivered right to your inbox!

Thank you for your subscription

×