让html的表格中单元格的内容居中显示的方法如下:
1、新建一个html5文件。

2、创建一个宽度为300px,三行四列的表格并写入内容。

3、通过css选择table标签控制表格内容居中,text-align:center;

扩展资料:
标签定义 HTML 表格。
1、简单的 HTML 表格由 table 元素以及一个或多个 tr、th 或 td 元素组成。
2、tr 元素定义表格行,th 元素定义表头,td 元素定义表格单元。
3、更复杂的 HTML 表格也可能包括 caption、col、colgroup、thead、tfoot 以及 tbody 元素。