HTML-layout a form using a table, and layout an html table
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
What is the code structure of the HTML table layout form?
For example, the user login form:
<Table>
<Tr>
<Td> User name: </td>
<Td> <input type = "text"/> </td>
</Tr>
<Tr>
<Td> password: </td>
<Td> <input type = "text"/> </td>
</Tr>
</Table>
In this way, you can. You can add content as needed. Hope to adopt it
How does html insert a form into a table?
You can take a test of this Code ------
<Html>
<Head>
<Title>
Table + form
</Title>
</Head>
<Body>
<H1 align = "center"> User Registration <Hr size = "3" width = "800" color = "red">
<Table border = "0" align = "center" width = "600" height = "300">
<Tr>
<Td> User Name:
</Td>
<Td> <input type = "text" name = "name" size = "5" maxlength = "6"> only 6 characters can be entered
</Td>
</Tr>
<Tr>
<Td> password:
</Td>
<Td> <input type = "password" name = "pass">
</Td>
</Tr>
<Tr>
<Td> gender:
</Td>
<Td> <input type = "radio" name = "sex"> male & nbsp <input type = "radio" name = "sex "> female
</Td>
</Tr>
<Tr>
<Td> from:
</Td>
<Td> <select name = "select">
<Option name = "aihao" value = "pingpeng"> Anhui
<Option name = "aihao" value = "pingpeng" selected> Hunan
<Option name = "aihao" value = "pingpeng"> Hubei
</Select>
</Td>
</Tr>
<Tr>
<Td> hobbies
... The remaining full text>