Computer Applications

Yamini is the class coordinator of a school. She has to prepare a table of the names of students, class and the subjects they are good at. Help Yamini to generate the code for displaying this table.

Roll_NoNameClassSubject
1NehaVthMaths
2Amit10thEnglish
3SnehaIIIrdG.K.

HTML Advanced Features

2 Likes

Answer

HTML code to generate the table is given below:

<TABLE border = "Z">
<TR align = "center">
<TH> Roll_No </TH>
<TH> Name </TH>
<TH> Class </TH>
<TH>Subject </TH>
</TR>
<TR align = "center">
<TD> 1 </TD>
<TD> Neha </TD>
<TD> Vth </TD>
<TD> Maths </TD>
</TR>
<TR align= "center">
<TD> 2 </TD>
<TD> Amit </TD>
<TD> 10th </TD>
<TD> English </TD>
</TR>
<TR align= "center" valign = "middle">
<TD> 3 </TD>
<TD> Sneha </TD>
<TD> IIIrd </TD>
<TD> G.K.</TD>
</TR>
</TABLE>

Answered By

1 Like


Related Questions