Write the output of the following code:-
<html><head> <title>Table </title> </head>
<body><table border=1><tr><td align="center" rowspan=2> ONE</td><td>TWO</td>
<td>THREE</td></tr>
<tr><td>Rose</td><td>Lily</td></tr>
<tr><td align="center">Pansy</td><td align="center" colspan=2>Dahlia</td></tr>
</table>
</body>
</html>
Answers
Answered by
32
TWO THREE
Rose Lily
Pansy Dahlia
Attachments:
Answered by
1
Answer:
The output is ONE TWO THREE
Rose Lily
Pansy Dahlia
Explanation:
- HTML is defined as Hypertext Markup Language. It was used to develop webpages using notepad and viewed through any browsing website as a gateway.
- An HTML uses a building block known as Tags and it contain element.
The basic framework begins with the following tags:
<HTML>
<head>
<title> hello world </title>
</head>
</html>
Given that:
<html><head> <title>Table </title> </head>
<body><table border=1><tr><td align="center" rowspan=2> ONE</td><td>TWO</td>
<td>THREE</td></tr>
<tr><td>Rose</td><td>Lily</td></tr>
<tr><td align="center">Pansy</td><td align="center" colspan=2>Dahlia</td></tr>
</table>
</body>
</html>
Output:
ONE TWO THREE
Rose Lily
Pansy Dahlia
- We can understand that,
<tr> has defined the given row in a table
<td> has defined the given cell in a table.
#SPJ2
Similar questions