Module 5: JavaScript Validation and Wireframe Design

Link to my site: http://drew-williams.infinityfree.me/Module5.html
For this module, I worked on both web programming and web design.

Web Programming:
I created my own HTML contact form with fields for name, email, and age. To make it more interactive, I wrote a JavaScript validation script. The script checks that the name field is not empty, the email contains an “@” symbol, and the age entered is 18 or older. If the inputs don’t meet these conditions, the form displays error messages in red. If everything is valid, it shows a green success message.
The easy part of this task was creating the basic form structure with HTML. The more challenging part was writing the validation logic so it gave clear and specific feedback for each error. Once I got the conditions right, it was satisfying to see the form respond dynamically when testing different inputs.

Web Design:
For the design portion, I created a wireframe that simply shows the current structure of my website, you could also say it serves as a reference for how future pages should be designed. The wireframe includes a spot for a header with a logo and navigation, a main content area for forms and other features, and a footer. I designed it this way to keep the layout simple, clean, and user-friendly.
My rationale was to separate the site into clear sections: the header for navigation and branding, the main content area for the core purpose of each page, and the footer for consistency across the site.

Overall Reflection:
This module helped me practice real-world input validation in JavaScript while also thinking about web design structure. The form validation exercise showed me how JavaScript can improve user experience by catching errors before submission. The wireframe exercise emphasized the importance of planning, giving me a clearer idea of how users will interact with the site before adding polish.

Comments

Popular posts from this blog

Module 8: PHP Forms and GET vs POST

Module 2: Introduction to HTML, CSS, and FTP

Working with Datetime and Timedelta in Python