हिंदी

Write the HTML code to design a Web page as shown below: Consider the specification as given below. Students can write the code for any 4 specifications out of the given 5 specifications. Roll No - Computer Applications

Advertisements
Advertisements

प्रश्न

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

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

Roll No. Name Class Class Average
1 Amit 95 95.5
2 Angel 96
Teacher Mr. Hamid

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

  • The text color of the entire page is Tomato.
  • The background color of the entire page is Light blue.
  • Font-family as Helvetica.

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

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

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

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

टिप्पणी लिखिए
Advertisements

उत्तर

<HTML>
<HEAD>
<STYLE>
body {background-color : lightblue;
color: Tomato;
font-family :helvetica;}
</STYLE>
</HEAD>
<BODY>
<TABLE border="l">
<TR>
<TH> Roll No. </TH>
<TH> Name</TH>
<TH>Marks</TH>
<TH> Class Average</TH>
</TR>
<TR valign ="Middle">
<TD>l</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> 
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2021-2022 (March) Official Term 2
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×