HTML
  Home arrow HTML arrow Page 9 - 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 / 64
    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 - Text Area, Check Box, and Radio Buttons


    (Page 9 of 12 )

    Text Area

    Using text area, users can enter multiple lines of text. For instance, you may enter comments or paste your resume inside a text area. They are applied using <TEXTAREA></TEXTAREA> tag. By applying the above code, you will get a default text area. However, you can increase its width and height by applying its ROWS and COLS attribute.

    Check Box

    Check boxes enable you to choose a list of items. For instance, you may select your hobbies using these boxes. A tick mark appears inside the box. If you again check the box, the tick mark goes away. Look at the code fragment given below:

    Listing 22

        Select a Language:
        <input type = "checkbox" name = "t1" checked>Java
        <input type = "checkbox" name = "t2">C++
        <input type = "checkbox" name = "t3">Oracle
        <input type = "checkbox" name = "t4">C-Sharp

    By default, Java will be checked. Notice the checked attribute on the second line of the code.

    Radio Buttons

    With radio buttons, you can select only one item at a time. But with check boxes, you can pick any number of items. For instance, you may select the sex (either male or female) using these boxes as shown below.

    Listing 23

        Select your sex:
       <input type = "radio" name = "r1">Male
       <input type = "radio" name = "r1">Female

    You should give the same name for the attribute name. Otherwise, you will not get the functionality of radio buttons.

    The above pieces of codes can be combined into one single page as shown in Listing 24

    Listing 24

    <HTML>
    <HEAD><TITLE>HTML Forms</TITLE></HEAD>
    <BODY>
    <FORM action = "
    mailto:yourname@server.com" method = "post">
    Enter your Name:  <input type = "text" name = "t1"
    maxlength = 20 size = 25>
    Enter your Password: <input type = "password" name = "p1">
    Select a Language: 
    <input type = "checkbox" name = "t1" checked>Java
    <input type = "checkbox" name = "t2" checked>C++
    <input type = "checkbox" name = "t3" checked>Oracle
    <input type = "checkbox" name = "t4" checked>C-Sharp
    Select your sex: -
    <input type = "radio" name = "r1">Male
    <input type = "radio" name = "r1">Female
     <CENTER><input type = "submit" name = "s1">
    <input type = "reset" name = res1"></CENTER>
    <SELECT name = "s1">
    <OPTION>India
    <OPTION>USA
    <OPTION>UK
    </SELECT>

    The above code submits the information entered by the user to the email address specified in the Form tag’s action attribute. Notice the mailto syntax inside the Form tag.

    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

    - 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
    - Custom Buttons in HTML







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