In html code, the mark indicating table rows is "
". The tr tag defines rows in an HTML table. A " " element contains one or more " " or " " elements. The th element defines the header cell and contains header information; the td element defines the standard cell and contains data. The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
In html code, the mark indicating table rows is "
". tags define rows in an HTML table. A element contains one or more or elements. Let’s take a look at the use of
tag through code examples: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <table border="1"> <tr> <th>商品</th> <th>价格</th> </tr> <tr> <td>T恤</td> <td>¥100</td> </tr> <tr> <td>牛仔褂</td> <td>¥250</td> </tr> <tr> <td>牛仔库</td> <td>¥150</td> </tr> </table> </body> </html>Copy after loginInstructions:
HTML tables have two cell types:
Header cell - contains header information (created by
element) Standard cell - Contains data (created by
element) Text within the
element is usually rendered bold and centered. The text within the element is usually ordinary left-aligned text. Recommended tutorial: "html video tutorial"
The above is the detailed content of What is the markup that represents table rows in html code. For more information, please follow other related articles on the PHP Chinese website!