Home >Web Front-end >HTML Tutorial >How to set table font in html

How to set table font in html

WBOY
WBOYOriginal
2021-11-09 17:51:1716795browse

How to set the table font: You can set the font style through the style attribute of the table tag, the syntax "

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

htmlHow to set the table font:

1. Open the html editor, create a new html file, for example: index.html, and write the basic code of the problem, as shown below As shown.

How to set table font in html

##2. Enter the style code in the tag in index.html: style="max-width:90%"color: font color ;font-size: font size; font-family: font (black, bold, italic); text-algn: alignment (center, left, right); background-color: background color, as shown below.

How to set table font in html

3. The browser runs the index.html page. At this time, the font size of the entire table is unified to 28px, red font, aligned to the left, blue background and italics, as shown below As shown.

How to set table font in html

For more programming-related knowledge, please visit:

Programming Video!!

The above is the detailed content of How to set table font in html. 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