JNTUK R19 Web Technologies Lab

  1. Design the following static web pages required for an online book store web site.

    1. Home Page
    2. Login Page
    3. Registration Page
    4. Catalogue Page
    5. Cart Page
    6. Payment by Credit Cart

    Click Here for Solution

  2. Design a web page using CSS (Cascading Style Sheets) which includes the following: 1) Use different font, styles: In the style definition you define how each selector should work (font, color etc.). Then, in the body of your pages, you refer to these selectors to activate the styles.

    Click Here for Solution

  3. <!--This is additional experiment for RPRA students-->
    Create a table for ChessBoard. The board should be alternating colors and an eight-by-eight grid. Here are the UNICODE characters you'll need for the pieces.

    • White King: &#9812;
    • White Queen: &#9813;
    • White Rook: &#9814;
    • White Bishop: &#9815;
    • White Knight: &#9816;
    • White Pawn: &#9817;
    • Black King: &#9818;
    • Black Queen: &#9819;
    • Black Rook: &#9820;
    • Black Bishop: &#9821;
    • Back Knight: &#9822;
    • Black Pawn: &#9823;
    Use CSS for providing required styles for ChessBoard.

    Click Here for Solution

  4. Write JavaScript to validate the following fields of the registration page.
    1. Name (Name should contains alphabets and the length should not be less than 6 characters).
    2. Password (Password should not be less than 6 characters length).
    3. Confirm password(Password and confirm password should be same).
    4. E-mail id (should not contain any invalid and must follow the standard pattern name@domain.com).
    5. Phone number (Phone number should contain 10 digits only).

    Click Here for Solution

  5. Design a HTML having a text box and four buttons viz Factorial, Fibonacci, Prime, and Palindrome. When a button is pressed an appropriate javascript function should be called to display

    1. Factorial of that number
    2. Fibonacci series up to that number
    3. Prime numbers up to that number
    4. Is it palindrome or not

    Click Here for Solution

  6. <!--This is additional experiment for RPRA students-->
    Write JavaScript to autofill a billing address form from shipping address form.

    Click Here for Solution

  7. <!--This is additional experiment for RPRA students-->
    Write JavaScript and CSS to create image slideshow.

    Click Here for Solution

  8. Write an XML file which will display the Book information which includes the following:
    1. Title of the book
    2. Author Name
    3. ISBN number
    4. Publisher name
    5. Edition
    6. Price
    Write a Document Type Definition (DTD) to validate the above XML file.

    Click Here for Solution

  9. Assume four users user1, user2, user3 and user4 having the passwords pwd1, pwd2, pwd3 and pwd4 respectively. Write a PHP for doing the following.
    1. Create a Cookie and add these four user id’s and passwords to this Cookie.
    2. Read the user id and passwords entered in the Login form (week1) and authenticate with the values (user id and passwords) available in the cookies. If he is a valid user (i.e., user-name and password match) you should welcome him by name (user-name) else you should display "You are not an authenticated user".

    Click Here for Solution

  10. Insert the details of users who register with the web site by using registration form. Authenticate the user when he submits the login form using the user name and password from the database.

    Click Here for Solution

  11. <!--This is additional experiment for RPRA students-->
    HTTP is a stateless protocol. Session is required to maintain the state.
    Every user will have his own session which will be created after his successful login to the website. When the user logs out his session should get invalidated.

    Click Here for Solution