< td> is an ordinary cell, <th> is a header cell, which is displayed in bold and centered.
width: cell width
height: cell height
bgColor : Cell background color
background: Cell background image
align: Horizontal alignment
valign: Vertical horizontal alignment
rowspan: Merge upper and lower cells. Merge attributes must be placed in the first cell.
colspan: merge left and right cells. When merging, there must be decreases as well as increases, ensuring that the number of cells in each row remains unchanged.
Note: The attribute is case-sensitive. If bgColor is written as bgcolor, it will have no effect
You can enter each attribute and view the output effect
##caption tag
Add a title and summary to the table
Summary
The content of the summary will not be displayed in the browser. Its function is to increase the readability (semanticization) of the table, enable search engines to better understand the table content, and also enable screen readers to better help special users read the table content.
Syntax: <table summary="table introduction text">
Title
is used to describe the content of the table , the display position of the title: above the table.
The courseware is not available for download at the moment. The staff is currently organizing it. Please pay more attention to this course in the future~
Students who have watched this course are also learning