CBSE Class 10 Computer Applications Question 27 of 31

Solved Sample Paper 1 — Question 5

Back to all questions
5
Question

Question 23

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.
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>