0% found this document useful (0 votes)
2 views

Doctype HTML

The document is an HTML code that creates a simple table displaying items, their prices, and quantities. The table includes three items: Apple, Banana, and Orange, with respective prices and quantities. It features styling for borders, colors, and alternating row backgrounds.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Doctype HTML

The document is an HTML code that creates a simple table displaying items, their prices, and quantities. The table includes three items: Apple, Banana, and Orange, with respective prices and quantities. It features styling for borders, colors, and alternating row backgrounds.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>

<html>

<head>

<style>

table {

border: 1px solid black;

th, td {

border: 1px solid black;

color: #333;

th {

background-color: navy;

color: white;

tr:nth-child(even) {

background-color: lightgray;

</style>

</head>

<body>

<table>

<caption>Simple Table</caption>

<tr>

<th>Item</th>

<th>Price</th>

<th>Quantity</th>

</tr>

<tr>

<td>Apple</td>
<td>$1</td>

<td>10</td>

</tr>

<tr>

<td>Banana</td>

<td>$0.5</td>

<td>20</td>

</tr>

<tr>

<td>Orange</td>

<td>$0.75</td>

<td>15</td>

</tr>

</table>

</body>

</html>

You might also like