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.
##2. Enter the style code in thetag 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. 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. 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!