You are on page 1of 1

UNIVERSITY OF MORATUWA ITE 1712

Faculty of Information Technology


Bachelor of Information Technology (BIT) External Degree
ITE 1712 – Web Design - Practical Exam

SECTION 02 (40 marks)

Create a Form as shown below in Figure 1 using JavaScript.

Feedback
Name

Age (years)

Gender Male
Female

Submit Clear

Figure 1 - Form

1. Create the form as shown above in Figure 1. A user must enter a value for all the
input fields. (20 marks)
2. When the user submitted the form, it should display the error message “You should be
above 12 years old” if the user enters an age lesser than 12 years or left blank.
(10 marks)
3. When the user submitted the form, it should display a thank you message with the
user’s name on the top of the web page.
e.g. Thank you Radha Silva! (10 marks)

ITE 1712 – Web Design - Practical Exam Page 1 of 1

You might also like