LAB
LAB
Create
page one.html having a link to two.html; create two.html having a link to three.html. Print “Welcome to
Hyperlinks” in three.html.
b. Write a script that inputs a telephone number as a string in the form (044) 555-5555. The script should
use string method split to extract the area code as a token and the last four digits of the phone number as a
token. Display the area code in one text field and the seven-digit phone number in another text field.
2. a. Create a web page which includes an embedded map and display the related information about the
place when a hot spot is clicked on the map.
b. Write a script that calculates the squares and cubes of the numbers from 0 to 10 and display the
resulting values in an HTML table.
3. a. Design a web page with different tables. Design a webpages using table so that the content appears
well placed.
b. Write a script that reads an integer and display whether it is odd or even.
4. a. Create a web page that describes an unordered list of at least four books. The bullet for each book
must be a small image hot spot. When you click the picture all the related information about the book
must be shown.
b. Write a script that finds the factorial of a given number ‘n’ from the user
5. a. Write an HTML code to create a Home page having three links: About Us, Our Services and Contact
Us. Create separate web pages for the three links.
b. Write a script that calculates the square and cube of numbers from5 to 15 using alert dialog.
6.a. Write an HTML code to create a login form. On submitting the form, the user should get navigated to
a profile page.
b. Write a script that reads a five-digit integer and determines whether it is a palindrome or not.
7. a. Write an HTML code to create a Registration Form. On submitting the form, the user should be
asked to login with this new credentials.
b. Create a web page which displays the syllabus of WT as a bulleted list. Unit titles are displayed as
contents of the main list and the topics of individual units are displayed as sub lists in the main list. (Hint:
Use nested lists). Instead of bullets for unordered list, display arrows using CSS.
8. a. Create a webpage to manage personal details like name, class, qualifications, photo, address etc.,
using tables and other suitable HTML tags. Apply the Display the heading of the page in Times New
Roman font and with 24pxfollowing style information: Apply light blue as background colour for the
left side cells in the table Align all the field names like Name, Class, Photo etc to right in the table. size.
Also display your college logo as background image in the top right positionwhich contains field names
like Name, Class etc... of the web page.
b. Write a script that inputs three integers from the user and displays the sum, average, and product of the
numbers in an alert dialog.
9. a. Create a webpage which displays the class time table and apply the following .For the table header
apply blue as the background color and white for the effects on the table: Display day names (Mon, Tue
etc...) in bold format with the first letter in color of the text in the table header. Display lunch slightly in
bigger font other than the remaining text the day name in uppercase.
b. Write a script that calculates the sum of integers from 1 to 10 and displays the result.
10. a. Create a web page which displays the syllabus of WT as a bulleted list. Unit titles are displayed as
contents of the main list and the topics of individual units are displayed as sub lists in the main list. (Hint:
Use nested lists). Instead of bullets for unordered list, display arrows using CSS.
b. Write a JavaScript that use a simple function to search the word “Web” in the string “Programming the
World Wide Web”
14. a .Write Jsp Program for displaying Student results using Database Connectivity
b. Write a JavaScript that use a simple function to search the word “Mining” in the string“Data
Warehouse and Data Mining” and retrieve the position of the word.
b. Write a script that gets two numbers as input from the user. Calculate the sum of the two numbers.
17. a. Write a Java Program to parse Xml File using Xml sax.
b. Write a JavaScript that use a simple function to search the word “Web” in the string “Programming the
World Wide Web”
18. (a) Create and test a web document that describes nested ordered lists of cars. The outer list must
have three entries, namely compact, midsize and sports. Inside each of these three lists there must
be two sub-lists of body styles. The compact and midsize car sub-lists are two doors and four
doors; the sports car sub-lists are coupe and convertible. Each body-style sub- list must have at least
three entries, each of which is the make and model of a particular car that fits the category. Use
appropriate colors to differentiate each list of cars. Use inline, internal and external style sheets
(b) Write a script that reads an integer and display whether it is odd or even.
19. a. Write an XSLT document that transforms the XML document consisting of information about the
employees in a manufacturing company as given below. Construct the document into an HTML
sorted list by name.
Name Job Department
Deitel Chief Engineer Engineering
Jessica Designer Design
Mark Project Coordinator Marketing
John Administrator Engineering
Carter Accountant Finance
Rose Programmer Technical Support
b. Write a script that gets two numbers as input from the user and calculate the product of two
numbers.
20. (a) Develop an application using Ajax program for displaying the message “Hello Ajax World”.
Use button and enable click event to display the message and name the button as “Get
Message”.
(b) Write a script that gets two numbers as input from the user. Calculate the sum of the two
numbers.
21. (a) Write an XSL style sheet for an XML document consisting of details about the shopping cart
purchase list with 50gms of Badam, 100gms of Cashew nuts,150gms of coffee powder, 250gms
of salt, 500gms of Dhal, 750 liter of oil and1000gms of sugar and displays the document about
shopping cart information in an HTML table.
(b) Write a script that calculates the sum of integers from 1 to 10 and displays the result
22. a. Develop an application using Ajax program for CHECKING USER AVAILABILITY USING
AJAX
b. Write a JavaScript that use a simple function to search the word “Web” in the string “Programming
the World Wide Web”
23.( a). Consider a case where we have web services: an airline service and a travel agent. The travel
agent is searching for an airline. Implement this scenario using web services and database. Document the
functional requirements you are considering.
(b) Write a script that gets two numbers as input from user and print the greater of two numbers
24(a) Write a JAVA program the invokes a servlet from an HTML document that gets user name
from a text box and have four checkboxes for a purchase order of electronic items like calculator which
cost Rs. 1,000, television costs Rs. 25,000, laptop costs Rs.45,000 and a mobile phone costs Rs. 9,900.
Use radio buttons to make the order through online using either Visa or Master card. Calculate the total
cost of ordered items.
(b) Write a script that finds the smallest of several integers. Assume that the first value read
specifies the number of values to be input from the user.
27. a. Create a webpage which displays "Hello World" with font size 20 pixels, bold format, in "Times
New Roman" font and green in colour using inline CSS, embedded CSS and external CSS.
b. Write a script that calculates the sum of integers from 1 to 10 and displays the result.
25(a) Create a JSP and JDBC based online-examination. Prepare the questions of your choice.
The students should enter their name and register number before answering the questions. The
online exam should contain at least five questions. Each question should be of multiple choices.
The choice of selection should use radio buttons, for each correct answer one mark should be
awarded. After attempting all questions, proceed with submit button. After clicking the submit
button, display the result with register number, name of the student and marks obtained in a HTML
form.
(b) Write a JavaScript that use a simple function to search the word “Web” in the string
“Programming the World Wide Web”.
28.a) Create a web page containing two images, where one image overlaps another image by using the z-index CSS
property.
b) Write a Java Script TO FIND PRODUCT OF TWO NUMBERS
26. (a) Create and test a web document that describes nested ordered lists of cars. The outer list must
have three entries, namely compact, midsize and sports. Inside each of these three lists there must
be two sub-lists of body styles. The compact and midsize car sub-lists are two doors and
four doors; the sports car sub-lists are coupe and convertible. Each body-style sub- list must have
at least three entries, each of which is the make and model of a particular car that fits the category.
Use appropriate colors to differentiate each list of cars. Use inline, internal and external style sheets
(b) Write a script that reads an integer and display whether it is odd or even.
29. a) (a) Create a Java Script with two collections of six radio buttons, labeled Red, Green, Blue,
Yellow, Magenta and Cyan. The first collection must be labeled Foreground; the second must
be labeled Background. These buttons must be implemented to control the foreground and background
colors of the display, so that the foreground color can be seen. Include few geometric shapes and texts
(b)Write a script that inputs three integers from the user and displays the sum, average, and product
of the numbers in an alert dialog.
30 . a) Create Calculator web service for arithmetic operations. Implement the scenario.
(b) Write a script that gets two numbers as input from user and print the greater of two
numbers