Home >
Web Front-end >
HTML Tutorial >
Table usage of html (allowing the visual effects of the web page to be displayed)_HTML/Xhtml_Web page production
Table usage of html (allowing the visual effects of the web page to be displayed)_HTML/Xhtml_Web page production
WBOY
Release: 2016-05-16 16:40:20
Original
1532 people have browsed it
We know that when NetEase blog can use HTML, whether to add the code directly to the template, but the effect is not very good. That's because the code is not arranged well. Now let me talk about using a table to arrange it, which can display the special effects very well.
In HTML syntax, table (i.e. table) is an indispensable part. Without it, it is difficult to display the visual effect of the web page. Now I will talk about table. Below is a table with two rows and two columns:
The code is:
< /TR>
< /TABLE>
tr means row, td means column, border means thickness ("0" means it will not be displayed), means space. Here, the width of the table is preferably 100% (width="100%"), do you understand now? Once you understand, you can add the code you want in "
".
For example:
< /TD>
The effect is:
Just like this, the others are the same.
One more thing: when we make tables, there are some tables like this:
and
The method of
is:
and
<< /td>
If you look carefully, you can see the extra colspan="2" and rowspan="2", right? ! ! ! This is what you want. "2" is a parameter, and you have to set it yourself〉
<
td>
and
< ;td>
The effects of are:
and
Note: Other codes must be added in
....
, this is dedicated to those friends who don’t know html! !
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