HTML
  Home arrow HTML arrow Page 8 - HTML Tutorial
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

HTML Tutorial
By: Anand Narayanaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 65
    2004-10-11

    Table of Contents:
  • HTML Tutorial
  • Paragraph Tags, Attributes and Headings
  • Using Lists
  • Indents and Links
  • Working with Images
  • Working with Tables
  • Working with Frames
  • Using Forms, Text, Buttons, and Combo Box
  • Text Area, Check Box, and Radio Buttons
  • Additional Tags
  • Drawing Lines, SUB and SUP Tags
  • Test Yourself Questions

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    HTML Tutorial - Using Forms, Text, Buttons, and Combo Box


    (Page 8 of 12 )

    Forms are used widely on nearly all Web pages. Web sites collect feedback information, registration details through these forms. If you have ever signed up for free web pages, free email services from yahoo, hotmail etc you may be already aware and familiar with forms. They are applied using <FORM> </FORM> tag. This tag accepts one important attribute namely action, which is used to specify the path for the specified action. HTML forms mainly consist of various form elements, which are specified using <INPUT>tag. This tag accepts many attributes, which are elaborated below along with Form elements.

    Text Field

    This element is used to enter texts like usernames, addresses etc. Its main attributes are type (value = text), size (value = “Any numeric value”), Maxlength (Value = “Any numeric value”). In the code given below, a user can enter 30 characters initially and then the text scrolls to the left.

    Listing 18

        <INPUT type = “text” size = “30”>

    Buttons

    One of the most important form elements is Button. They serve an integral part in an HTML form. They are mainly used to trigger actions. There are two types of buttons, which are Submit and Reset. Submit buttons delivers the entire data on the form to the server while Reset button clears all your previous entries. The important attributes are type (value = Submit or Reset), Value (value = “Any Text like OK, Cancel”). To create a button labeled Click here, you have to code like as shown below:

    Listing 19

        <INPUT type = “submit” value = “Click here”>

    Combo box

    These boxes enable you to pick an item from a set of values. They are applied using <SELECT> tag as shown below:

    Listing 20

    <SELECT name = "s1">
    <OPTION>India
    <OPTION>USA
    <OPTION>UK
    </SELECT>

    The above code creates a list of 3 countries. However, as said before users can select any one item at a time. You can change this behavior by applying an attribute named multiple as shown below:

    Listing 21

    <SELECT name = "s1" multiple>
    <OPTION>India
    <OPTION>USA
    <OPTION>UK
    </SELECT>

    More HTML Articles
    More By Anand Narayanaswamy


       · this is really terrible. how did this win a contest?? the author could not even use...
       · I read the date of the article twice, as it would have been quite a valid article in...
       · Dear Reader;The article won because of the quality of the article, including...
       · about the benefits of charcoal for transportation, it'll win? This is...
       · You know, you're absolutely right. All I can say is that I apologize for any...
       · Hi All,Thanks for your comments. Well. I am the author of this HTML...
       · Point taken. But that is like taking out the english people use in text messaging...
       · "The <BLOCKQUOTE> tag double indents a block of text from both margins automatically...
       · I noticed one thing about that tutorial that I find VERY amateur. How many of...
       · Right or wrong, the author has still made an effort to explain the 'concept' of...
       · Even for HTML 3.2, this article advocates bad practises. Fact is that nobody _needs_...
       · I think the quality of this article is really good. It would be really helpful for...
       · No offense Shiju, but your website is garbage as well, and you are most certainly...
       · man i just spent like 2 hours reading and following this tutorial and now that im...
       · I was just thinking the SAME EXACT thing...
       · this article serves its purpose but its step by step tutorial is too easy and...
       · I am photographer and i still teach B&W using a darkroom. I see both side, although...
     

    HTML ARTICLES

    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset
    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway