Web Programming Lab
Web Programming Lab
LAB MANUAL
1. Create a table to show your class time table.
2. Use tables to provide layout to your HTML page describing your college infrastructure.
3. Use <span> and <div> tags and
tags to provide a layout to the above page instead of a table layout.
4. Use frames such that page is divided into 3 frames 20% on left to show contents of
pages, 60% in centre to show body of page, remaining on right to show remarks.
5. Embed Audio and Video into your HTML web page.
6. Create a webpage with HTML describing your department use paragraph and list tags.
7. Apply various colors to suitably distinguish key words , also apply font styling like
italics, underline and two other fonts to words you find appropriate , also use header
tags..
8. Create links on the words e.g. ―Wi-Fi and ―LAN‖ to link them to Wikipedia pages.
9. Insert an image and create a link such that clicking on image takes user to other page.
10. Change the background color of the page; At the bottom create a link to take user to the
top of the page.
11. Develop static pages (using only HTML) of an online book store, the pages should
resemble: www.amazon.com, the website should consist the following pages, home page,
registration and user login, user profile page, books catalog, shopping cart, payment by
credit card, order confirmation.
12. Write an HTML page that contains a selection box with a list of 5 countries, when the
user selects a country, its capital should be printed next to the list; Add CSS to customize
the properties of the font of the capital (color, bold and font size).
13. Write a java script program to test the first character of a string is uppercase or not.
14. Write a pattern that matches e-mail addresses.
15. Write a java script function to print an integer with commas as thousands separators.
16. Write a java script program to sort a list of elements using quick sort.
17. Write a java script for loop that will iterate from 0 to 15 for each iteration, it will check if
the current number is odd or even, and display a message to the screen.
18. Write a java script program which compute, the average marks of the following
students then this average is used to determine the corresponding grade.
19. Write a java script program to sum the multiple s of 3 and 5 under 1000. To design the
scientific calculator and make event for each button using java script.
20. A simple calculator web application that takes two numbers and an operator (+ ,/,* and
%) from an HTML page and returns the result page with the operation performed on the
operands.
21. Create a “registration form “with the following fields
Name (Text field)
Password (password field)
E-mail id (text field)
Phone number (text field)
Sex (radio button)
Date of birth (3 select boxes)
Language known
Address (Text Area)
22. Write JavaScript to validate the following fields of the above registration page.
Name (Name should contains alphabets and the length should not be less than 6
characters). Password (Password should not be less than 6 characters length).
E-mail id (should not contain any invalid and must follow the standard pattern
name@domain.com)
Phone number (Phone number should contain 10 digits only