HTML CSS Reference/HTML Attributes Reference/enctype

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

"enctype" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For enctype</Title></head> <body onUnload="document.forms[0].reset()"> <form name="form1" method="post" action="" encoding="text/plain">

My Password: <input type="password" name="textfield" value="15151515"size="20"> <input type="button" name="Submit" value="Submit">

</form> </body> </BODY> </HTML>


     </source>
   
  


enctype is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<form> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"enctype" Syntax and Note

   <source lang="html4strict">

Note:

This attribute sets the MIME encoding type. The default value is application/x-www-form-urlencoded.

Syntax:

<form enctype="value"> . . . </form> HTML <FORM ENCTYPE = sType... > Scripting FORM.encoding [ = sType ]


     </source>