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
7.6k 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
8.6k points

Related questions

asked Oct 17, 2024 60.7k views
Franck Anso asked Oct 17, 2024
by Franck Anso
8.1k points
1 answer
1 vote
60.7k views
asked Sep 21, 2024 53.8k views
Bryanbraun asked Sep 21, 2024
by Bryanbraun
8.5k points
1 answer
2 votes
53.8k views