Q.No.1 Write HTML code in notepad to perform following tasks. [3 marks]
a) Display “Welcome to Public Service Commission” welome text moving in top of the web page
b) Display “About PSC” in heading 4 formats.
c) Display following text as bulleted list:
· PSC Papers
· PSC Exams
· PSC Centers
· PSC Results
Sol:
१. <marquee>Welcome to Public Service Commission</marquee>
२. <h4>About PSC</h4>
३. Text Unordered Bulleted list
<ul>
<li>PSC Papers</li>
<li>PSC Exams</li>
<li>PSC Centers</li>
<li>PSC Results</li>
</ul>
Overall
<html>
<head><title>Welcome to Public Servic Commission</title></head>
<body>
<marquee>Welcome to Public Service Commission</marquee>
<h4>About PSC</h4>
<ul>
<li>PSC Papers</li>
<li>PSC Exams</li>
<li>PSC Centers</li>
<li>PSC Results</li>
</ul>
</body>
</html>
Q.No.2 Create the following html document using Notepad. (Kathmandu Center 2071)
2. Create the following table in html document.
A.
| |
B.
| |
C.
|
D.
|
Sol:
१. <a href=”http://www.psc.gov.np”>PSC</a>
२. Table
<table border=”1”>
<tr><td>A.</td><td> </td></tr>
<tr><td> </td><td>B.</td></tr>
<tr><td>C.</td><td>D.</td></tr>
</table>
Overall,
<html>
<head><title></title></head>
<body>
<a href=”http://www.psc.gov.np”>PSC</a>
<table border=”1”>
<tr><td>A.</td><td> </td></tr>
<tr><td> </td><td>B.</td></tr>
<tr><td>C.</td><td>D.</td></tr>
</table>
</body>
</html>
Q.No.3 Create a webpage and make the following table.
ABC Company Limited
Banepa, Kavre
Staff Details
S.N.
|
Name
|
Address
|
Salary
|
1.
|
Govinda Bhatt
|
Mahendranagar
|
17000
|
2.
|
Manoj Giri
|
Darchula
|
12000
|
Total
|
29000
|
Sol:
1. <b><p>ABC Company Limited</p></b>
2. <table border=”1”>
<tr>S.N.<td></td><td>Name</td><td>Address</td><td>Salary</td></tr>
<tr><td>1</td><td>Govinda Bhatt</td><td>Mahendranagar</td><td>17000</td></tr>
<tr><td>2</td><td>Manoj Giri</td><td>Darchula</td><td>15000</td></tr>
<tr><td colspan=”3”>Total</td><td>29000</td></tr>
</table>
Q.No.4. Create the following HTML document using notepad.
City
|
Population
| |
Male
|
Female
| |
Banepa
|
55000
|
58000
|
Kathmandu
|
105700
|
108900
|
Bhaktapur
|
33000
|
29500
|
Sol:
<table border="1">
<tr><td rowspan="2">City</td><td colspan="2">Population</td></tr>
<tr><td>Male</td><td>Female</td></tr>
<tr><td>Banepa</td><td>55000</td><td>58000</td></tr>
<tr><td>Kathmandu</td><td>105700</td><td>108900</td></tr>
<tr><td>Bhaktapur</td><td>33000</td><td>29500</td></tr>
</table>
Q.No.5 Create following table writing HTML code
City
|
Population
| |
Male
|
Female
| |
Bhokumbas
|
34000
|
3600
|
Prolipitus
|
43000
|
4000
|
St.Florence
|
64500
|
6400
|
Sol:
<table border="1">
<tr><td rowspan="2">City</td><td colspan="2"><center>Population</center></td></tr>
<tr><td><b>Male</b></td><td><b>Female</b></td></tr>
<tr><td>Bhokumbas</td><td>34000</td><td>3600</td></tr>
<tr><td>Prolipitus</td><td>43000</td><td><b><u>4000</u></b></td></tr>
<tr><td>St.Florence</td><td>64500</td><td>6400</td></tr>
</table>
No comments:
Post a Comment