WT
WT
1. Create a simple registration form with fields for name, email, and password. Apply CSS to style the
form elements. Use CSS selectors to target specific elements for styling.
2. Develop a table displaying student grades with columns for name, subject, and grade. Apply CSS to
style the table, including alternating row colors. Use CSS selectors to style specific table elements.
3. Construct an unordered list of your favorite books, including the title and author of each book. Apply
CSS to style the list items, such as changing the font and adding bullet points. Utilize CSS selectors to
target specific list elements for styling.
4. Create a gallery of nature photographs using <img> tags. Apply CSS to arrange the images in a grid
layout with equal spacing between them. Use CSS selectors to style the images, such as adding borders
or shadows.
UNIT 2
1. Create a simple HTML page with a button. When the button is clicked, display an alert with a greeting
message.
2. Design an HTML form with fields for name and email. Write JavaScript code to validate that both
fields are filled out before submitting the form. Display an error message if validation fails.
3. Create an HTML page with a list of items. Write JavaScript code to add a new item to the list when a
button is clicked.
4. Build a simple timer application using HTML and JavaScript. Display a timer that counts down from 5
minutes when the page is loaded. When the timer reaches 0, display an alert indicating that the time is
up.
UNIT 3
1. Create an XML document representing a list of books. Define an internal DTD specifying the structure
of the XML, including elements for title, author, and publication year.
2. Design an XML document representing a catalog of products. Define an external DTD file specifying
the structure and constraints of the XML, including elements for product name, description, and price.
3. Develop an XML document describing a collection of movies. Define elements for movie title,
director, release year, and genre. Utilize the XSD to validate the XML, ensuring adherence to the
defined structure and constraints.
4. Create a JSON object representing a list of employees. Each employee should have properties for
name, age, and department. Write JavaScript code to retrieve and display the name and department of
each employee from the JSON object.