long
Long 1.Create an HTML form that contain the Student Registration details and write a JavaScript to validate Student first and last name as it should not contain other than alphabets and age should be between 18 to 50. <!DOCTYPE html> <html> <head> <title>Student Registration Form</title> <script> function validateForm() { var firstName = document.forms["registration"]["firstName"].value; var lastName = document.forms["registration"]["lastName"].value; var age = document.forms["registration"]["age"].value; var namePattern = /^[A-Za-z]+$/; if (!namePattern.test(firstName)) { alert("First name must contain only alphabets."); ...