Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use table in html

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

In this article, the editor introduces in detail "how to use table in html", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to use table in html" can help you solve your doubts.

A simple HTML table consists of table elements and tr, td, and th elements, where tr refers to table rows, td refers to cells, and th defines headers. Empty cells can be left unfilled, or used.

Header cell 1 cell 3

two。 A table with borders. The border element represents the border of the table, the default unit is px,cellspcing for the spacing between the table and the table, and the cellpadding represents the distance between the inner margin / inner fill.

Header header Cell 1 Cell 2 Cell 3

3. With a background picture or color table, note: bgcolor represents color, while background can not add color directly in html (this sentence is wrong, it is the wrong way to use inline style to write the format is style= "background:red" or style= "background-color:red"), add in table is to set up the entire table, if set in a separate tr or td is to set a separate row or cells.

Header header Cell 1 Cell 2 Cell 3

4, cross-row and cross-column table, rowspan means cross-row, colspan means cross-column, cross-column will be deleted in the current table row, cross-row will be deleted in the lower table row.

Cross-line name Bill Gates Tel. 555 77 854 555 77 855 Name and telephone number Bill Gates 555 77 854 555 77 855

5. For a table with a title, caption represents the title of the table, and you can also use other tags such as the p tag to locate the title of the table, but the advantage of using caption is that it will follow the table, which is aligned with the table by default.

6. Arrange the contents in a table cell, such as adding paragraphs, lists, etc.

This is a paragraph, hello World!

This is a list of html css javascript

The 7.frame frame property, which specifies which part of the outer border is visible. / / will not be used for the time being.

After reading this, the article "how to use table in html" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report