[go: up one dir, main page]

0% found this document useful (0 votes)
6 views25 pages

HOMEWORKITR

The document outlines a series of homework assignments focused on web development using HTML, CSS, JavaScript, and PHP. Each assignment includes tasks such as creating HTML structures, implementing CSS layouts, and writing JavaScript functions for various functionalities. Additionally, there are PHP assignments related to database operations, including connecting to a MySQL database and manipulating user data.

Uploaded by

Shruti Shevade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views25 pages

HOMEWORKITR

The document outlines a series of homework assignments focused on web development using HTML, CSS, JavaScript, and PHP. Each assignment includes tasks such as creating HTML structures, implementing CSS layouts, and writing JavaScript functions for various functionalities. Additionally, there are PHP assignments related to database operations, including connecting to a MySQL database and manipulating user data.

Uploaded by

Shruti Shevade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 25

HOMEWORK NO.

Q.1) Create a complete HTML document with a navigation bar, a main section with an article, and a
footer.
HOMEWORK NO.2

Q.1) Create a table in HTML with 3 columns: Name, Age, and Email, and populate it with 3 rows of
data.
HOMEWORK NO.3

Q.) Create a form in HTML with inputs for first name, last name, and email, along with a submit
button. Use the POST method.

HOMEWORK NO.4

Q) Create a responsive image gallery using HTML and CSS grid. Include at least 4 images.
HOMEWORK NO.5

Q.) Create a dropdown menu in HTML.


HOMEWORK NO.6

Q.) How do you create a simple grid layout with three columns and two rows using CSS Grid?
HOMEWORK NO.7

Q.) How do you create a responsive navigation bar using Flexbox?


HOMEWORL NO.8

Q.) How do you create a sticky footer that always stays at the bottom of the page using CSS?
HOMEWORK NO.9

Q.) How do you create a button with rounded corners and a hover effect in CSS?
HOMEWORK NO.10
Q.) How do you use media queries in CSS to create a responsive design that changes the background
colour of the body based on the screen width?

HOMEWORK NO.11
Q.) Write a JavaScript function that takes an array of numbers and returns the sum of the numbers.

HOMEWORK NO.12
Q.) Create a simple to-do list application in JavaScript where users can add and remove items.

HOMEWORK NO.13
Q.) Write a JavaScript function that validates an email address using regular expressions.

HOMEWORK NO.14
Q.) Create a JavaScript countdown timer that counts down from a specified number of seconds and
displays the remaining time.

HOMEWORK NO.15

Q.) Write a JavaScript function that fetches data from a public API and displays it on a webpage.
HOMEWORK NO.16

Q.) Write a PHP script that checks if a given number is even or odd.
HOMEWORK NO.17

Q.) Write a PHP script that uses a for loop to print numbers from 1 to 10.
HOMEWORK NO.18

Q.) Write a PHP script that uses a foreach loop to iterate over an array of fruits and print each fruit.
HOMEWORK NO.19

Q.) Write a PHP script that uses a while loop to print the numbers from 10 to 1.
HOMEWORK NO. 20
Q.) Write a PHP script that checks if a variable is set and not empty, and prints an appropriate
message.

HOMEWORK NO.21
Q.) Write a PHP script to connect to a MySQL database and select all rows from a table called "users".
Display the results in a HTML table.

Output:

HOMEWORK NO.22
Q.) Write a PHP script to insert a new row into the "users" table with values for name and
email.

OUTPUT:
HOMEWORK NO.23

Q.) Write a PHP script to update the email of a user with a specific id in the "users" table

OUTPUT:

HOMEWORK NO.24

Q.) Write a PHP script to delete a user with a specific id from the "users" table.
OUTPUT:

HOMEWORK NO.25

Q.) Write a PHP script to create a new table called "products" with columns for id, name, and price.
OUTPUT:

You might also like