HTML drawing user registration page

HTML drawing user registration page

This article shares the specific implementation code of HTML drawing user registration page for your reference. The specific content is as follows

XML/HTML CodeCopy content to clipboard
  1. < html >   
  2.     < head >   
  3.       < script >   
  4. function aa()
  5. {
  6. var s;
  7.             s = reg .user .value;
  8. alert("Username is "+s);
  9. }
  10. function aa2(t)
  11. {
  12. var p1,p2;
  13. alert(t);
  14.              p1 = reg .pass1.value;
  15.              p2 = reg .pass2.value;
  16. if(p1!=p2)
  17. alert("The two passwords do not match");
  18.   
  19. }
  20.   
  21.       </ script >   
  22.     </ head >   
  23.     < body >   
  24.       < h1   align = " center " > Register </h1>   
  25.       < table   align = "center"   border = "2"   width = "400"   bgcolor = "pink" >   
  26.        < form   name = "reg" >   
  27.          < tr > < td > Username </ td > < td > < input   type = "text"   name = "user" > </ td > </ tr >   
  28.          < tr > < td > Password </ td > < td > < input   type = "password"   name = "pass1" > </ td > </ tr >   
  29.          < tr > < td > Confirm password </ td > < td > < input   type = "password"   name = "pass2"    onblur = "aa2(this)" > </ td > </ tr >   
  30.           < tr > < td > Gender </ td > < td > < input   type = "radio"   name = "sex"   value = "1" > Male < input   type = "radio"   name = "sex"   value = " 2 " checked > Female </td> </tr>   
  31.            < tr > < td > Hobbies </ td > < td > < input   type = "checkbox"   name = "hb1"   value = "ft" > Football < input   type = "checkbox"   name = "hb2"   value = "ms" > Music < input     
  32.   
  33. type = "checkbox"   name = "hb3"   value = "tor"   / > Travel </td> </tr>   
  34.            < tr > < td   colspan = "2" > < input   type = "file"   name = "f1"   /> </ td > </ tr >   
  35.   
  36.            < tr > < td > College </ td > < td >   
  37.                            < select   name = "s" >   
  38.                              < option   value = "1" selected > School of Information </ option >   
  39.                             < option   value = "2" > School of Management </ option >   
  40.                              < option   value = "3" > School of Mechanical and Electrical Engineering </ option >   
  41.                            </ select >      
  42.   
  43.       < tr > < td   colspan = "2"   align = "center" > < input   type = "button"   value = "Submit"    onclick = "aa()"   />   < input   type = "reset"   value = "Reset"   /> </ td > </ tr >   
  44.   
  45.        </ form >   
  46.   
  47.     </ body >   
  48. </ html >   
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

<<:  Detailed explanation of ES6 Promise usage

>>:  MySQL data analysis storage engine example explanation

Recommend

js to implement verification code interference (dynamic)

This article example shares the specific code of ...

W3C Tutorial (7): W3C XSL Activities

A style sheet describes how a document should be ...

Nginx learning how to build a file hotlink protection service example

Preface Everyone knows that many sites now charge...

How to set up vscode remote connection to server docker container

Table of contents Pull the image Run the image (g...

CSS specification BEM CSS and OOCSS sample code detailed explanation

Preface During project development, due to differ...

MySQL series 6 users and authorization

Table of contents Tutorial Series 1. User Managem...

Detailed tutorial on installing ElasticSearch 6.x in docker

First, pull the image (or just create a container...

19 MySQL optimization methods in database management

After MySQL database optimization, not only can t...

React uses routing to redirect to the login interface

In the previous article, after configuring the we...

How to implement horizontal bar chart with percentage in echarts

Table of contents Example Code Rendering Code Ana...

CSS Transition expands and collapses elements by changing the Height

A common development need is that we want to coll...

Html long text automatically cuts off when it exceeds the tag width

When we display long text, we often need to interc...

Detailed example of database operation object model in Spring jdbc

Detailed example of database operation object mod...

Application nesting of HTML ul unordered tables

Application nesting of unordered lists Copy code T...