Lokang 

HTML and CSS

table

A table in HTML is used to display data in a grid format, with rows and columns. The main elements used to create a table in HTML are the "table", "tr" (table row), "th" (table header), and "td" (table data) tags. Here is an example of a simple table in HTML:

<table>
 <tr>
   <th>Header 1</th>
   <th>Header 2</th>
 </tr>
 <tr>
   <td>Row 1, Cell 1</td>
   <td>Row 1, Cell 2</td>
 </tr>
 <tr>
   <td>Row 2, Cell 1</td>
   <td>Row 2, Cell 2</td>
 </tr>
</table>

This will create a table with two columns (Header 1 and Header 2) and two rows (Row 1 and Row 2).

CSS (Cascading Style Sheets) can be used to control the presentation of the HTML table elements, such as the font size, color, or border. Here is an example of how you can change the font size of the table data:

<style>
td{
 font-size:20px;
}
</style>
<table>
 <tr>
   <th>Header 1</th>
   <th>Header 2</th>
 </tr>
 <tr>
   <td>Row 1, Cell 1</td>
   <td>Row 1, Cell 2</td>
 </tr>
 <tr>
   <td>Row 2, Cell 1</td>
   <td>Row 2, Cell 2</td>
 </tr>
</table>

This will set the font size of the table data to 20px. You can also use CSS to control the table's border.

table {
 border-collapse: collapse;
}
th, td {
 border: 1px solid black;
}

This will create a border around the table, and around each cell, giving a grid-like structure to the table

It's also possible to style specific cells or rows by using classes or ID's to select those elements.

<style>
.highlight{
 background-color: yellow;
}
</style>
<table>
 <tr>
   <th>Header 1</th>
   <th>Header 2</th>
 </tr>
 <tr>
   <td class="highlight">Row 1, Cell 1</td>
   <td>Row 1, Cell 2</td>
 </tr>
 <tr>
   <td>Row 2, Cell 1</td>
   <td>Row 2, Cell 2</td>
 </tr>
</table>

This will highlight the first cell of the first row with a yellow background.

As you can see, you can use both HTML and CSS to create and style tables on your web pages, allowing you to display data in a structured, organized way.