About Forms (II)

Multi-line text fields syntax:

 <textarea name="showText" cols="x" rows="y">内容</textarea>

 Translation: General for writing "description", cols = "x": the number of columns, rows = "y" is displayed: the number of lines displayed;

 

E-mail syntax:

 <p>邮箱:<input type="email" name="email"/></p>

 Translation: p: row labels; type = "email": type of mail (email) Email address will automatically verify the correct format; 

 

URL syntax:

 <P> Your URL: <input type = "url" name = "url"> </ p>

 Translation: type = "url" type "URL", automatically verifies whether the correct URL address format

 

Digital syntax:

 <p>请输入数字:<input type="number" name="number" min="0" max="100"  step="10"></input></p> 

 Translation: type = "number" is a type of digital, min = "0" set minimum value, max = "100" set the maximum step: legal digital interval;

Slider syntax:

 <p>请输入数字:<input type="range" name="range1" min="0" max="10" step="2"/></p>

 Translation: type = "range" type slider 

Search box syntax:

 < The p-> Please enter search keywords: < the INPUT of the type = "Search"  name = "sousuo" /> </ the p->

 Translation: type = "search" type search box;

 

Guess you like

Origin www.cnblogs.com/a973692898/p/11611860.html
ii