Web page
Varun2837 opened this issue · 0 comments
Varun2837 commented
<title>Table and Lists Example</title>
<style>
/* Optional CSS for styling */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
ul {
list-style-type: none;
padding: 0;
}
</style>
Table and Lists Example
<h2>Sample Table</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>30</td>
<td>New York</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>25</td>
<td>San Francisco</td>
</tr>
</tbody>
</table>
<h2>Sample Lists</h2>
<h3>Unordered List</h3>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<h3>Ordered List</h3>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>