You are on page 1of 2

1. Display your class routine in an html page in tabular format.

2. Write an html file with the help of JavaScript to display the current date and time in
proper format.

3. Write an html page with the help of JavaScript to takemarks in 4 subjetcs and
displays the sum.
4. Create an html form as follows:
The form contains two text boxes; one for your name and another for telephone
number. Telephone number should have exactly 10 digits starting with the digit '9' and
name should not be left blank. Add a submit button also. When submit button is clicked,
name and telephone number would be displayed on the screen. Write appropriate
JavaScript function(s) to handle the above constraints.

5. Find two images of the same size (or similar sizes) and place one on the page. Then,
update your code so that the image changes when the reader moves the cursor over
the image. Note that you may need to enclose your image in an a href tag.

6. Write an html page which has three text boxes and two buttons with captions 'add'
and 'clear'. When add button is clicked, the result after addition of the numbers
entered in the first two text boxes would be shown in the third one. When clear button
is clicked, the contents(if any) of the first two text boxes is removed.

7. Suppose an XML file contains the specification about hard disks from different
manufacturer in thr following format:
<harddisk>
<manufacturer>samsung</manufacturer>
<speed unit="rpm">7200<speed>
<capacity unit="GB">80</capacity>
<price currency="INR">2000</price>
</harddisk>
Write a stylesheet as follows:
The name of the manufactuer would be displayed in bold fact; spped in italics and use
this style sheet to display this content of the XML file.

8. An XML file contains formatted data. Write a DTD for an XML file that contains a
set of objective type questions as following:
• Each question has exactly four options and a single answer.
• Each option and answer is a sequence of characters and digits and special
characters
• Create an html form to upload such a XML file containing the questions. Write a
JSP page to parse the XML file and display the questions in the following format:
• Number the questions
Use a radio button for each option
9. Write simple JSP page to take an integer and display the the square table from 1 to
the number given

10. Write a JSP page to take the marks in 4 subjetcs and displays the sum

11. Create a database to contain price manufacturer and model of different components of
a computer system. Create an html form where user will select model and
manufacturer of different components and asks for the total price. Write a JSP page to
display the total price of the system for the given configuration after obtaining the
information from the database.
.
12. Create a database to store the marks of all students in all semester in all subjects.
Write a JSP page to select the semester, roll number and subject. JSP page will in turn
find the corresponding marks and display it. You can make your own assuptions
depending upon your needs.

You might also like