". 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 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.">

Home  >  Article  >  Web Front-end  >  What is the markup that represents table rows in html code

What is the markup that represents table rows in html code

青灯夜游
青灯夜游Original
2021-06-08 16:03:0217169browse

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.

What is the markup that represents table rows in html code

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>

What is the markup that represents table rows in html code

Instructions:

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!

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