During the web page creation process, some independent logical parts are divided and placed in a
tag. This
A label acts like a container. A logical section is a set of interrelated elements on a page. For example, an independent column section in a web page is a typical logical part.
## & lt; p ID = "Pigram name" & gt; ... & lt;/p & gt; to make the logic clearer, we can set a name for this independent logic part, use ID#Attribute to provide a unique name for
, just like the ID number uniquely identifies our identity and must be unique.
Four elements to create a table: table, tbody, tr, th, td
a,
…
: The entire table starts with the
tag and ends with the
tag.
b,
…: When there is a lot of table content, the table will be downloaded and displayed a little bit, but if the tag is added, the table will have to wait for the table content. It will not be displayed until everything is downloaded. Such as the code in the codeEditor on the right.
c,
…
: One row of the table, so there are several rows of the table as many pairs of tr.
d,
…
: A cell of the table. One row contains several pairs of
...
, indicating how many columns there are in one row. .
e,
…
: A cell at the head of the table, table header.
f. The number of columns in the table depends on the number of data cells in a row.
Summary: The table table displays no table lines in the browser before adding css style. The header, that is, the text in th is bold and centered by default.
The above is the detailed content of Detailed explanation of 2 important tags in html. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn