KnowledgeBoat Logo
|

Computer Applications

Write the HTML code to design a Web page as shown below :

Write the HTML code to design a Web page as shown. CBSE 2022 Computer Applications Code 165 Class 10 Question Paper Solved.

Consider the specifications as given below. Students can write the code for any 4 specifications out of the given 5 specifications.

Specification-1 : Use CSS to set the following for the entire body :

  • Text color of the entire page as Tomato.
  • Background color of the entire page as Light blue.
  • Font-family as Helvetica.

Specification-2 : The value of the table border attribute should be 1. Table header tag should be used wherever required.

Specification-3 : The table should exactly contain 4 rows and 4 columns. The data in each cell should be as shown in the above table.

Specification-4 : Attribute rowspan should be used wherever required.

Specification-5 : Attribute colspan should be used wherever required.

HTML Advanced Features

5 Likes

Answer

<HTML>
<HEAD>
<STYLE type = "text/css">
body {
  color: Tomato;
  background-color: LightBlue;
  font-family: Helvetica;
}
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER = "1" CELLSPACING = "3">
<TR>
<TH> Roll No. </TH>
<TH> Name </TH>
<TH> Marks </TH>
<TH> Class Average </TH>
</TR>
<TR>
<TD> 1 </TD>
<TD> Amit </TD>
<TD> 95 </TD>
<TD ROWSPAN = "3"> 95.5 </TD>
</TR>
<TR>
<TD> 2 </TD>
<TD> Angel </TD>
<TD> 96 </TD>
</TR>
<TR>
<TD COLSPAN = "3"> Teacher Mr. Hamid </TD>
</TR>
</TABLE>
</BODY>
</HTML>

Answered By

5 Likes


Related Questions