Tuesday, 17 May 2011

HTML : Input Type Text button Radio



Input: Input is a tag used to display the input controls on the webpage.
Type: Type is an attribute to provide the type of the control.

Type=text> Displays the text box on the webpage.
<html>
<input type="text" dir="ltr" maxlength="15" value="Search in DanPHP" style="color:red">
</html>
Save this film with .html extension.

Type=button> It displays the button control on the webpage.
<input type="button" value="show" onClick="img1.style.visibility= 'visible'">
<input type="button" value="hide" onClick="img1.style.visibility= 'hidden'">
<br>
<img src="1.jpg" width="578" id="img1">

Type=Radio> Displays the radio button on webpage.
<input type="radio" name="rad" checked= onClick="txt1.disabled= false; txt2.disabled= true">ALT Email Id : <input type="text" id="txt1".value= 'ALT email" onClick= 'value= Dinesh ">
<br>
<input type="radio" name="rad1" onClick="txt2.disabled= false; txt1.disabled= true">SEC QST : <input type="text" id="txt2".value= "SEC QSN" disable>



Type = Password : It displays the password control on the webpage.

Type=File: It displays the file upload control on the webpage.
Type=Submit: By using this control we can submit the web page to the server. If you want to transfer the page values to the web server, we are using submit button.
Sample Script:
<input type="file">
<br>
<input type="password">
<input type="checkbox" checked="checked">Dinesh
<input type="checkbox" checked="checked">Dilip
<input type="submit" value="Login">
Save this file with .html.

1 comment:

  1. "Blessed Be Your Name
    php notesn the land that php notess plentphp notesful
    Where Your streams of abundance flow
    Blessed be Your name

    Blessed Be Your name
    When php notes'm found php notesn the desert place
    Though php notes walk through the wphp noteslderness
    Blessed Be Your name

    Every blessphp notesng You pour out
    php notes'll turn back to praphp notesse
    When the darkness closes php notesn, Lord
    Stphp notesll php notes wphp notesll say

    Blessed be the name of the Lord
    Blessed be Your name
    Blessed be the name of the Lord
    Blessed be Your glorphp notesous name

    Blessed be Your name
    When the sun's shphp notesnphp notesng down on me
    When the world's 'all as php notest should be'
    Blessed be Your name

    Blessed be Your name
    On the road marked wphp notesth sufferphp notesng
    Though there's paphp notesn php notesn the offerphp notesng
    Blessed be Your name

    ReplyDelete