Wednesday, 3 July 2019

Published July 03, 2019 by with 0 comment

MCSL016 December 2014 Paper Solution




MCSL-016

Set 4 December 2014 solution-

Question 1- Create a form containing the following fields using VBScript/JavaScript:
Date of Birth : Combo box ( one for each day, month and year)
E-mail : Text Box

solution-
  1. <html>
  2. <head></head>
  3. <body>
  4. <table>
  5. <tr>
  6. <td>Date of Birth</td>
  7. <td><select name="day" >
  8. <option value="1">1</option>
  9. <option value="2">2</option>
  10. <option value="3">3</option>
  11. <option value="4">4</option>
  12. <option value="5">5</option>
  13. <option value="6">6</option>
  14.       //  you can add more option for date 7 to 31
  15. </select>
  16.      </td>
  17. <td>
  18. <select name="month" >
  19. <option value="january">january</option>
  20. <option value="feb">February</option>
  21. <option value="mar">March</option>
  22.          // you can add months like above using option tag
  23. </select>
  24. </td>
  25. <td>
  26. <select name="year">
  27. <option value="2010">2010</option>
  28. <option value="2011">2011</option>
  29. <option value="2012">2012</option>
  30. <option value="2013">2013</option>
  31.                                                   // if you want to add more year then you can do so using option tag
  32. </select>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>Email Id</td>
  37. <td colspan="3"><input type="text" name="email"></td>
  38. </tr>
  39. </table>
  40. </body>
  41. </html>
Question 1 - Create a web page and divide the webpage into four frames. In one frame create three links that will display different HTML forms in the remaining three frames respectively.
solution-
main.html
<html>
<head>
</head>
   <frameset cols="50%,50%" rows="50%,50%" scrolling="no">
<frame src="frame1.html" name="frame1"></frame>
<frame  name="frame2"></frame>
<frame  name="frame3"></frame>
<frame  name="frame4"></frame>
</frameset>

</html>


frame1.html
<html>
<head></head>
<body>
<h3>This page contains link to open different pages into different frames</h3>
<ul>
<li><a href="page1.html" target="frame2">Page1 link</a></li>
<li><a href="page2.html" target="frame3">Page2 link</a></li>
<li><a href="page3.html" target="frame4">Page3 link</a></li>
</ul>
</body>
</html>

page1.html
<html>
<head></head>
<body>
<h1>This is page1 which will open in frame 2</h1>
</body>
</html>

page2.html
<html>
<head></head>
<body>
<h1>This is page1 which will open in frame 2</h1>
</body>
</html>


page3.html
<html>
<head></head>
<body>
<h1>This is page1 which will open in frame 2</h1>
</body>
</html>

all the files main.html, frame1.html, page1.html, page2.html, page3.html should be in same folder



if you have any doubt related to this post, you can ask in comment section and if you want solution of any previous year questions. please post that question in section we will try to solve that

Thank You






0 comments:

Post a Comment