How to add a header in html
This article focuses on "how to add a header to html". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to add a header to html.
In a html table, you can add a header by using one or more "th" tags in the table tag, which is used to define the header cell in the HTML table; the syntax "header information".
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
Html add a header
Monthly deposit 3000 yuan in January 2000 yuan in February
Effect picture:
Description:
Tags define the header cells in the HTML table. Header cell-contains header information.
Text in an element is usually rendered in bold and centered.
Property value description abbrtextHTML5 is not supported. Specifies the abbreviated version of the content in the header cell. Alignleft
Right
Center
Justify
CharHTML5 does not support it. Specifies the horizontal alignment of the contents of the header cell. Axiscategory_nameHTML5 does not support it. Classify header cells. Bgcolorrgb (xmeme xpene x)
# xxxxxx
ColornameHTML5 does not support it. HTML 4.01 is obsolete. Specifies the background color of the header cell. CharcharacterHTML5 does not support it. Specifies which character to use to align the content. CharoffnumberHTML5 does not support it. Specifies the offset of aligned characters. Colspannumber specifies the number of columns that the header cell can span. Headersheader_id specifies one or more header cells associated with the header cell. Heightpixels
HTML5 does not support it. HTML 4.01 is obsolete. Specifies the height of the header cell. NowrapnowrapHTML5 does not support it. HTML 4.01 is obsolete. Specifies whether the contents of the header cell are wrapped. Rowspannumber specifies the number of rows that the header cell can span. Scopecol
Colgroup
Row
Rowgroup specifies whether the header cell is the header of a row, column, row group, or column group. Valigntop
Middle
Bottom
BaselineHTML5 does not support it. Specifies the vertical arrangement of the contents of the header cell. Widthpixels
HTML5 does not support it. HTML 4.01 is obsolete. Specifies the width of the header cell. At this point, I believe you have a deeper understanding of "how to add a header to html". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!