<br />This is a series of tutorials provided by 123WORDPRESS.COM. It is mainly for beginners to explain the application of tables in web pages, including the most basic knowledge, some table skills, etc. We hope you will support 123WORDPRESS.COM. Tables are the best way to arrange content. In HTML pages, most pages are laid out using tables. However, with current technology, some people have proposed using DIV CSS to create web pages. The main purpose is to simplify the code of the web page. Now many sites have implemented the DIV CSS layout, but in the process of web page creation, it is still very necessary for us to learn how to create tables, so I will explain it to you specifically. In the syntax of HTML, tables are mainly composed of three tags: table tag, row tag, and cell tag. As shown in the following table: Table Markup Tag Description <TABLE>…</TABLE> Table Tag <TR>…</TR> Row Tag <TD>…</TD> Cell Tag Basic syntax 01 <TABLE> 02 <TR> 03 <TD> …</TD> 04 … 05 </TR> 06 <TR> 07 <TD> …</TD> 08… 09 </TR> 10…… 11</TABLE> Syntax The <TABLE> tag represents the beginning of the table, the <TR> tag represents the beginning of the row, and the content between <TD> and </TD> is the cell content. The relationship between these tags is from large to small, layer by layer, from the largest table to the smallest cell. A table can have multiple <TR> and <TD> tags, representing multiple rows and multiple cells respectively. File example: 10-1.htm Use the <TABLE>, <TR>, and <TD> tags to create a table with three rows and two columns. 01 <!-- ------------------------------ --> 02 <!-- File example: 10-1.htm --> 03 <!-- File Description: Make a table--> 04 <!-- ------------------------------ --> 05 <HTML> 06 <HEAD> 07 <TITLE>Making a table</TITLE> 08 </HEAD> 09 <BODY> 10 <H1>Mainstream web design software</H1> 11 <TABLE> 12 <TR> 13 <TD>Web Image Software</TD> 14 <TD>Fireworks</TD> 15 </TR> 16 <TR> 17 <TD>Web page creation software</TD> 18 <TD>Dreamweaver</TD> 19 </TR> 20 <TR> 21 <TD>Web animation software</TD> 22 <TD>Flash</TD> 23 </TR> 24 </TABLE> 25 </BODY> 26 </HTML> File description <br />Lines 11 to 24 are a complete table, lines 12 to 15 are the first row of the table, lines 16 to 19 are the second row of the table, and lines 20 to 23 are the third row of the table. |
<<: Installation and usage analysis of Portainer, a visual UI management tool for Docker
>>: Introduction to MySQL <> and <=> operators
1. Install Docker First open the Linux environmen...
This time, we will try to package the running con...
Purpose of using Nginx Using Alibaba Cloud ECS cl...
This article is welcome to be shared and aggregat...
Set the background image for the table header. Yo...
Caused by: java.sql.SQLException: Incorrect strin...
A situation that often occurs in a project is tha...
This article example shares the specific code of ...
Events can specify the execution of SQL code once...
In my last post I talked about how to make a web p...
Original text: https://dev.mysql.com/doc/refman/8...
I don't know when it started, but every time ...
This article example shares the specific code of ...
# The following examples are for x64-bit runtime ...
Start a new project This article mainly records t...