HTML-layout a form using a table, and layout an html table

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.