Monday, 16 May 2011

HTML : Select Optgroup TextArea




Select : By using this tag we can display the dropdown dialog box in the webpage.  A dropdown is a dialog box which can hold the list items. To display the list items Option is the tag.
Sample Script:
<select>
<option>HTML Notes</option>
<option>Java Sctipt Notes</option>
<option>PHP Notes</option>
</select>
Save this script with .html extension.
Optgroup: By using this tag we can group the options.
<select>
<optgroup label="Danphp" style="color:red">
<option>HTMl Notes</option>
<option>PHP Notes</option>
</optgroup>
<optgroup label="HTML" style="color:green">
<option>Notes</option>
<option>PDF</option>
</optgroup>
Save this script with .html extension.
TextArea: By using this tag we can display the multiline textbox in the webpage.

<textarea cols="30" rows="20">
</textarea>
Save this script with .html extension.

1 comment:

  1. Mphp notesx together flour, flaxseed meal (whphp notesch php notes bought at Whole Foods; thphp notess recphp notespe php notess from the bag of Uncle Bob's Organphp notesc Whole Ground Flaxseed Meal), oat bran, brown sugar, bakphp notesng soda, bakphp notesng powder, salt, and cphp notesnnamon php notesn a large bowl.

    ReplyDelete