100% found this document useful (1 vote)
2K views2 pages

HTML Assignment 2

The document outlines various tasks involving HTML, JavaScript, XML, JSP and databases: 1. Display a class routine in an HTML table using JavaScript 2. Create an HTML page that displays the current date and time using JavaScript 3. Build an HTML page that takes marks in 4 subjects and displays the total using JavaScript 4. Build an HTML form that validates name and phone number inputs and displays them using JavaScript 5. Add interactivity to an image on an HTML page using JavaScript 6. Build an HTML page with a calculator that adds numbers in text boxes using JavaScript 7. Create an XML file about hard disks and an XSL stylesheet to display the data 8. Build an XML DT

Uploaded by

api-3697675
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
100% found this document useful (1 vote)
2K views2 pages

HTML Assignment 2

The document outlines various tasks involving HTML, JavaScript, XML, JSP and databases: 1. Display a class routine in an HTML table using JavaScript 2. Create an HTML page that displays the current date and time using JavaScript 3. Build an HTML page that takes marks in 4 subjects and displays the total using JavaScript 4. Build an HTML form that validates name and phone number inputs and displays them using JavaScript 5. Add interactivity to an image on an HTML page using JavaScript 6. Build an HTML page with a calculator that adds numbers in text boxes using JavaScript 7. Create an XML file about hard disks and an XSL stylesheet to display the data 8. Build an XML DT

Uploaded by

api-3697675
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 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