HTML Learning Diary part06

Source: Internet
Author: User
Tags add numbers

Use UL to add a list of news messages

<ul>

<li> News One </li>

<li> News II </li>

<li> News Three </li>

</ul>

Use OL, add book sales leaderboard, that is, before the text to automatically add numbers

<ol>

<li> News One </li>

<li> News II </li>

<li> News Three </li>

</ol>

Separate plates for Web pages with <div> tags

<div>bla...bla</div>

Name the div to make the logic clearer

<div id= "Plate name" >bla...bla</div>

Table tags, recognize tables on a Web page

1.<TABLE>...</TABLE>: The entire table starts with a <table> marker and ends with a </table> marker.

2, <tbody>...</tbody>: When the table content is very long, the form will download a little bit, but if the <tbody> tag is added, the form will be displayed after all the contents of the table have been downloaded.

3, <tr>...</tr>: One row of the table, so there are several pairs of TR tables.

4, <td>...</td>: A cell in a table that contains several pairs in a row <td>...</td> , stating that there are several columns in a row.

5, <th>...</th>: A cell in the head of a table, table header. the text in the table header, which is the th tag, defaults to bold and centered .

Use CSS styles to add a border to a table

<style type= "Text/css" >

Table TR td,th{border:1px solid #000;}

  </style>

  Add a title and a summary to a table

Add Summary: <table summary= "Table Introduction Text" >

Add title: <caption> Title Text </caption>

  

HTML Learning Diary part06

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.