Table Element
The <table>
element in HTML is used to create data tables on a web page.
index.html
- The
<table>
element defines the start of the table; - The
<tr>
element defines a row in the table; - The
<td>
element defines a cell in the table; - The
<th>
element is similar to the<td>
element but is used to define a table header cell, typically displayed in bold font and centered within the cell.
You can also use various attributes and elements to customize the layout of your table. For example, the colspan
attribute allows you to merge multiple columns into a single cell, and the rowspan
attribute allows you to merge multiple rows into a single cell.
index.html
Task
Fill in the below given HTML table that displays a list of movies with the following columns: "Title"
, "Director"
, "Year Released"
, and "Rating"
.
- Add the appropriate table headers.
- Fill in the tags needed.
- Add a new row containing any information you want.
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Stel mij vragen over dit onderwerp
Vat dit hoofdstuk samen
Toon voorbeelden uit de praktijk
Awesome!
Completion rate improved to 3.45
Table Element
Veeg om het menu te tonen
The <table>
element in HTML is used to create data tables on a web page.
index.html
- The
<table>
element defines the start of the table; - The
<tr>
element defines a row in the table; - The
<td>
element defines a cell in the table; - The
<th>
element is similar to the<td>
element but is used to define a table header cell, typically displayed in bold font and centered within the cell.
You can also use various attributes and elements to customize the layout of your table. For example, the colspan
attribute allows you to merge multiple columns into a single cell, and the rowspan
attribute allows you to merge multiple rows into a single cell.
index.html
Task
Fill in the below given HTML table that displays a list of movies with the following columns: "Title"
, "Director"
, "Year Released"
, and "Rating"
.
- Add the appropriate table headers.
- Fill in the tags needed.
- Add a new row containing any information you want.
Bedankt voor je feedback!