In this example, we'll demonstrate how to use BeautifulSoupOnline.com to extract data from HTML tables.
Let's say you want to extract data from the following HTML table:
<table id="data-table">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>30</td>
<td>New York</td>
</tr>
<tr>
<td>Emily</td>
<td>25</td>
<td>Los Angeles</td>
</tr>
</tbody>
</table>
You can use the CSS selector "#data-table" to target this table element.
Now, paste the HTML code into the "Input HTML" field and enter "#data-table" into the "CSS Selector" field on BeautifulSoupOnline.com. Click "Parse" to see the extracted data from the table.