HTML Form Essentials Summary

Source: Internet
Author: User
Tags html form

I. GENERAL forms

1. The table is defined by the <table> tag. Each table has several rows (defined by the <tr> tag) and each row is split into several cells (defined by the <td> tag). The letter TD refers to tabular data.

2. If you want to define a border, add <table to the outside of the tableborder="宽度"></table>

1 <TableBorder= "1">2 <TR>3 <TD>Row 1, Cell 1</TD>4 <TD>Row 1, Cell 2</TD>5 </TR>6 <TR>7 <TD>Row 2, Cell 1</TD>8 <TD>Row 2, Cell 2</TD>9 </TR>Ten </table>

3. The table header uses <th> tags.

<TableBorder= "1"><TR><th>Heading</th><th>Another Heading</th></TR><TR><TD>Row 1, Cell 1</TD><TD>Row 1, Cell 2</TD></TR><TR><TD>Row 2, Cell 1</TD><TD>Row 2, Cell 2</TD></TR></Table>

4. Empty cells in the table if the border disappears, the space placeholder "" is the &nbsp appropriate placeholder.

Second, unordered list

An unordered list is a list of items that are marked with a bold dot (typically a small black circle).

The unordered list starts with the <ul> tag. Each list item starts at <li>.

< ul > < Li > Coffee</li><li>Milk</ Li > </ ul >

The browser appears as follows:

    • Coffee
    • Milk

Three, ordered list

The list item is also a column of items, and the listing items are marked with numbers.

The sequence list starts with the <ol> tag. Each list item starts with the <li> label.

< ol > < Li > Coffee</li><li>Milk</ Li > </ ol >

The browser appears as follows:

    1. Coffee
    2. Milk

Iv. Custom Lists

A custom list is not just a column of items, but a combination of items and their annotations.

The custom list starts with the <dl> tag. Each custom list item starts with <dt>. The definition of each custom list item starts with <dd>.

<DL><DT>Coffee</DT><DD>Black Hot Drink</DD><DT>Milk</DT><DD>White Cold drink</DD></DL>

The browser appears as follows:

Coffee
Black Hot Drink
Milk
White
cold Drink

HTML Form Essentials Summary

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.