96.5k views
3 votes
2. Write the HTML code that would create this output on a web page:

NAME AGE INTERST
Jennifier Stone 14 Soccer
Moira Landers 17 Anime

User FJCG
by
4.0k points

1 Answer

5 votes

To create the desired output on a web page, you can use the following HTML code:

<table>

<tr>

<th>NAME</th>

<th>AGE</th>

<th>INTEREST</th>

</tr>

<tr>

<td>Jennifier Stone</td>

<td>14</td>

<td>Soccer</td>

</tr>

<tr>

<td>Moira Landers</td>

<td>17</td>

<td>Anime</td>

</tr>

</table>

This code will create a table with three columns (NAME, AGE, INTEREST) and two rows, each containing the name, age, and interest of a person.

Note: It is a good practice to use lowercase letters for HTML tags and attribute names, but I have used uppercase letters in this example to match the desired output.

User German Blanco
by
4.6k points