Web Technology
Community
Web Technology
2081 Boards
Section A
Answer any two questions.
1
Describe the rules for creating XML document. Create a XML file with simple type and elements with attribute and nested elements. Write its equivalent XSD.
10
Connect with us on Discord to become a contributor.
2
Create an HTML file containing form with textbox, select and radio button. Now write a javascript function for validating the form elements. Validate textbox for required, select field should have some value selected and radio button should be checked.
10
Connect with us on Discord to become a contributor.
3
Write a PHP program to create a form. Create an insertdb() method to insert the form vlaues into a database table and display() to display the database table value.
10
Connect with us on Discord to become a contributor.
Section B
Answer any eight questions.
4
Describe client server architecture with its types.
5
Connect with us on Discord to become a contributor.
5
Write a HTML script to create a table with three rows and three columns. The second row third column should contain a text “TU” with link set to www.tu.edu.np . The height of second row should be set to 200px.
5
<!DOCTYPE html>
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table border="1">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
</tr>
<tr height="200px">
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td><a href="www.tu.edu.np">TU</a></td>
</tr>
<tr>
<td>Row 3, Column 1</td>
<td>Row 3, Column 2</td>
<td>Row 3, Column 3</td>
</tr>
</table>
</body>
</html>
6
What is onload event in HTML? Write an HTML script that displays alert message “Hello Nepal” in onload event.
5
Connect with us on Discord to become a contributor.
7
How internal and external CSS differ from each other. Illustrate with example.
5
Connect with us on Discord to become a contributor.
8
How can you define array in javascript ? Create an array Fruit with its elements “apple”, “banana”, “mango”, “grape” and print the array.
5
Connect with us on Discord to become a contributor.
9
How can you transform XML document into HTML using XSLT. Support your answer with an example.
5
Connect with us on Discord to become a contributor.
10
Write a PHP function add that takes two arguments as an input and return their sum.
5
Connect with us on Discord to become a contributor.
11
Define cookie. Write a PHP program to create and retrive a cookie.
5
Connect with us on Discord to become a contributor.
12
What is text-overflow property in CSS ? How can you use clip and ellipseis in text-overflow ?
5
Connect with us on Discord to become a contributor.