HTML Code:
<table border="1"><!-- Begins a table with border attribute set to "1" -->
<tr><!-- Begins a table row -->
<td>Quick</td><!-- Adds a table data cell with the text "Quick" -->
<td colspan="2">brown fox</td><!-- Adds a table data cell with the text "brown fox" spanning 2 columns -->
<td>jumps</td><!-- Adds a table data cell with the text "jumps" -->
</tr><!-- Ends the first table row -->
<tr><!-- Begins a new table row -->
<td rowspan="3">over the</td><!-- Adds a table data cell with the text "over the" spanning 3 rows -->
<td>lazy</td><!-- Adds a table data cell with the text "lazy" -->
<td>dog</td><!-- Adds a table data cell with the text "dog" -->
<td>and</td><!-- Adds a table data cell with the text "and" -->
</tr><!-- Ends the second table row -->
<tr><!-- Begins another table row -->
<td>then</td><!-- Adds a table data cell with the text "then" -->
<td>it</td><!-- Adds a table data cell with the text "it" -->
<td>fall</td><!-- Adds a table data cell with the text "fall" -->
</tr><!-- Ends the third table row -->
<tr><!-- Begins a new table row -->
<td colspan="3">prey to a hunter</td><!-- Adds a table data cell with the text "prey to a hunter" spanning 3 columns -->
</tr><!-- Ends the fourth table row -->
</table><!-- Ends the table -->
Explanation:
Live Demo :
See the Pen table-answer by w3resource (@w3resource) on CodePen.
Supported browser
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4