HTML/CSS/Form Tags/Form TextField

Материал из Web эксперт
Перейти к: навигация, поиск

Form input field

   <source lang="html4strict">

<html> <body> <form> First name: <input type="text" name="firstname">
Last name: <input type="text" name="lastname"> </form> </body> </html>


      </source>
   
  


Form to email

   <source lang="html4strict">

<html> <body> <form action="MAILTO:someone@demo2s.ru" method="post" enctype="text/plain">

This form sends an e-mail to Demo2s.

Name:
<input type="text" name="name" value="yourname" size="20">
Mail:
<input type="text" name="mail" value="yourmail" size="20">
Comment:
<input type="text" name="comment" value="yourcomment" size="40">

<input type="submit" value="Send"> <input type="reset" value="Reset"> </form> </body> </html>


      </source>
   
  


Form with action script and textfield

   <source lang="html4strict">

<html> <body> <form name="input" action="fake_action.asp" method="get"> Type your first name: <input type="text" name="FirstName" value="Mickey" size="20">
Type your last name: <input type="text" name="LastName" value="Mouse" size="20">
<input type="submit" value="Submit"> </form> </body> </html>


      </source>
   
  


Multi-line Text Field Example

   <source lang="html4strict">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Multi-line Text Field Example</TITLE> </HEAD> <BODY>

Gadget Order Form


<FORM ACTION="http://www.rupany.ru/cgi-bin/post-query" METHOD="POST"> Special Instructions:
<TEXTAREA ROWS="10" COLS="40" NAME="Instructions"> Enter any special gadget ordering instructions in this space. </TEXTAREA> </FORM>


</BODY> </HTML>

      </source>
   
  


Text Field Example

   <source lang="html4strict">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Text Field Example</TITLE> </HEAD> <BODY>

Gadget Order Form


<FORM ACTION="http://www.fakedomain.ru/cgi-bin/post-query" METHOD="POST"> Customer Name: <INPUT TYPE="text"

    NAME="Cust_name" 
    SIZE="25" 
      MAXLENGTH="35">

</FORM>


</BODY> </HTML>


      </source>