4. Write the HTML code to create the following table


 

Book_No

 

Book_Name

Price

 

 

 

RS

Paise

101

DBMS

200

 

50

102

C-Prog

150

 

75

103

JAVA

300

 

00

104

PHP

250

 

50

105

ASP

100

 

00


Program :

 

<html>

<body>

 <table width="50%" align="left" cellpadding="1" cellspacing="3"  border="3">

  <tr align="center">

    <td rowspan="2">Book_No</td>

    <td rowspan="2">Book_Name</td>

   <td colspan="2">Price</td>

    </tr>

    <tr>

    <td width="25%" align="center">RS</td>

    <td width="25%" align="center">Paise</td>

    </tr>

    <tr>

    <td>101</td>

    <td>DBMS</td>

    <td>200</td>

   <td>50</td>

   </tr>

    <tr>

    <td>102</td>

    <td>C-Prog</td>

    <td>150</td>

  <td>75</td> 

  </tr>  <tr>

    <td>103</td>

    <td>JAVA</td>

    <td>300</td>

  <td>00</td>

   </tr><tr>

    <td>104</td>

    <td>PHP</td>

    <td>250</td>

   <td>50</td>

    </tr><tr>

    <td>105</td>

    <td>ASP</td>

    <td>100</td>

    <td>00</td>

  </tr>

</table>

</body>

</html>




Output Screen


No comments:

Post a Comment