", with the syntax "..."."/> ", with the syntax "...".">

Home  >  Article  >  Web Front-end  >  What to do if the borders of html table cells are not displayed

What to do if the borders of html table cells are not displayed

WBOY
WBOYOriginal
2021-11-09 17:05:4014793browse

Solution to the table cell border not displaying: Use the border attribute to add a border style to the table cell label "

", the syntax " ...".

What to do if the borders of html table cells are not displayed

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

htmlThe border of the table cell is not displayed. Solution:

1. First, open the html editor and create a new html file, for example: index.html.

What to do if the borders of html table cells are not displayed

2. In the

tag in index.html, enter the html code:
<table>
<tr><td>1</td><td style="border: 1px solid black">2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr>
</table>

In HTML, make the border of the table The attribute that needs to be set if it is not displayed is border.

Table borders are straight lines around table items that separate rows, columns, and cells. By default, borderless tables are displayed.

border=n, specifies the pixel value of the table border width. The larger the number, the wider it is. 0 means no border.

What to do if the borders of html table cells are not displayed

#3. The browser runs the index.html page. At this time, only the second cell in the table has a wireframe display.

What to do if the borders of html table cells are not displayed

For more programming related knowledge, please visit: Programming Video! !

The above is the detailed content of What to do if the borders of html table cells are not displayed. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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