Home >Web Front-end >HTML Tutorial >What does it mean to put this code in style? _html/css_WEB-ITnose

What does it mean to put this code in style? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:481303browse

The problem of merging adjacent cells. Eliminate the borders of each cell in the table. What is the purpose of placing the 63bd76834ec05ac1f4c0ebbeaafb099437eb775bb5a9e6f3d094e96a76117fe8 tag in the header? Generally, the title tag is placed after the f5d188ed2c074f8b944552db028f98a1 tag to name the table. Why put it in style?
Moreover, there is such a big difference between putting it in the style tag and not putting it in the style tag.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	<title>修改表格的边框</title>	<style type="text/css">		<caption>合并单元格之间的边框</caption>    	table.one{			border-collapse:collapse;			border:#0099cc;			}    </style></head><body>	<table width="191" height="129" border="2" class="one">    	<tr bordercolor="#0099cc">        	<td width="87">Hui</td>            <td width="86">Bobo</td>        </tr>        <tr bordercolor="#0099cc">        	<td>Huiji</td>            <td>Jhn</td>        </tr>    </table></body></html>

Add 63bd76834ec05ac1f4c0ebbeaafb0994 tag effect
Effect after removing it


Reply to discussion (solution)

In addition, the style will not work if the format is messed up

You can remove all the styles in style and see the effect. This problem is a bit 2

It is wrong to put the 63bd76834ec05ac1f4c0ebbeaafb0994 tag in c9ccee2e6ea535a969eb3f532ad9fe89. Because an error occurred, all styles defined in c9ccee2e6ea535a969eb3f532ad9fe89 are invalid.

Please declare html5

You can remove all the styles in style and see the effect. This problem is a bit 2

It would be bad if you remove it. If you remove it, it will become the second picture.

It is wrong to put the 63bd76834ec05ac1f4c0ebbeaafb0994 tag in c9ccee2e6ea535a969eb3f532ad9fe89. Because an error occurred, all styles defined in c9ccee2e6ea535a969eb3f532ad9fe89 are invalid. The 63bd76834ec05ac1f4c0ebbeaafb0994 tag should not be placed in the style. It is recommended to take a look at the usage of the caption tag

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