0% found this document useful (0 votes)
15 views3 pages

HTML and JavaScript Program Examples

The document contains a series of HTML and JavaScript programming tasks. It includes creating forms for student and travel details, displaying text with specific styles, and implementing various JavaScript functions for mathematical operations and event handling. Each task requires sending data to a server or displaying results based on user interactions.

Uploaded by

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

HTML and JavaScript Program Examples

The document contains a series of HTML and JavaScript programming tasks. It includes creating forms for student and travel details, displaying text with specific styles, and implementing various JavaScript functions for mathematical operations and event handling. Each task requires sending data to a server or displaying results based on user interactions.

Uploaded by

bsns4865
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Write a html program to accept Student ID (combination of alphabets and numbers),


date of joining, College name, percentage in previous class (in digits). The data should
be sent to the server.

2. Write a html program to enter Travel Details as follows : Name of the Hotel, Date of
check-in, Number of members (compulsory field). The data should be sent to server.

3.. Write a html program to create registration form to accept name, mobile no., date of
birth. The form should have register caption in the button to submit the data.

[Link] a html program to create Registration Form to accept Name, Mobile no (with
pattern restriction) and Date of Birth. The form should have REGISTER written on the
button to submit the data.

[Link] a html program to accept following information from the user. 1) Name of the
hospital 2) Email Id of the hospital 3) Number of beds in the hospital 4) Nature of the
Hospital (Private or Government). The data should be sent to the server.

[Link] html program to accept student name, Date of birth(compulsory field) and
attendance (in number form). Send the data to the server.

[Link] a html program to display "Digital India" in Verdana font using


internal CSS. Add any two sentences about Digital India below in orange
color.

8. Write a html program to display "Digital India" having underline using


inline CSS. Add any two sentences about IT subject below having yellow color
background for the text.

9. Write a html program to display "Maharashtra State Board" in blue color


and font size 30 pixels using internal CSS. Give background colour yellow for
the web page.

10. Write a html program to display Cyber Millennia having Arial font and
dotted border. Add any two advantages in blue color text. Use internal CSS to
achieve the same.
Javascript program

[Link] JavaScript code to print division of 2 numbers.

2. Write JavaScript code when user click on button, it will display sum of even
numbers from 1 to 10.

3. Write JavaScript code to accept a number and display the cube of a given
number when mouse is placed over button.

4. Write JavaScript code to accept two numbers and display the largest
number.

5. Write an even driven JavaScript program to display length of the text


"Information Technology" on click of a button.

6. Write an even driven JavaScript program to display table of accepted


number. (E.g. 2x1=2 2x2=4 )

7. Write an event driven JavaScript program to accept 2 numbers and display


which number is greater.
8. Write an event driven JavaScript program to accept a base and height and
display perimeter of a parallelogram. (Hint Perimeter of parallelogram = 2 x
base + 2 x height)

9. Write an event driven Javascript program to accept three numbers and


display addition and multiplication of the numbers.

10. Write an event driven JavaScript program to call a function after 2000
milliseconds and display text 'Hello'

11. Write an event driven JavaScript program to display number sequence


from 100 to 500 when the mouse is moved over a button.

12. Write an event driven JavaScript program to display square of a number


and cube of an accepted number on click of a button.

13. Write an event driven JavaScript program to display square of numbers


from 2 to 10 on click of a button.

14. Write JavaScript code to print factorial of accepted number.

15. Write JavaScript code to print multiplication table of 3.

You might also like