<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "en" lang = "en"> <pead> <title> </title> <style type = "text/css"> * {margin: 0px; padding: 0px; font-size: 12px;} input {width: 100px; height: 20px; border: 1px solid # ccc ;}</style> </pead> <body> Name: <input type = "text" id = "username" onfocus = "tips ('username', 'name can contain up to 16 characters')" onblur = "outtips () "/> password: <input type =" password "id =" password "onfocus =" tips ('Password', 'password must be 3-18 characters in length ') "onblur =" outtips () "/> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
It's relatively simple. I'm bored with writing, and I haven't written any code for a long time ....