Skip to content

A simple form validation code sample focusing on JavaScript. The script provides visual feedback on form submission, indicating empty and filled fields with distinct styling. This project was created for testing form validation skills and is responsive.

License

Notifications You must be signed in to change notification settings

Cauebf/form-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Form Validation Code Sample 📝

Demo

📌 Table of Contents

🚀 About the Code Sample

The code sample focuses on implementing form validation through JavaScript. Upon form submission, the script checks input values, and provides visual feedback. Empty fields trigger red borders and display "required field" messages, while filled fields turn borders green. Notably, the code is designed to be responsive across various devices.

💻 Technologies Used

  • HTML
  • CSS
  • JavaScript

📁 Code Structure

  • src/css/: Contains stylesheets.
    • reset.css: Resets default styles for consistency.
    • style.css: Styles specific to the code sample.
    • responsive.css: Styles for responsiveness.
  • src/js/: Holds JavaScript files.
    • index.js: Implements form validation logic.
  • src/img/: Stores images.
  • index.html: Main HTML file.

🏆 Challenges and Execution

The decision-making process and execution of the form validation presented unique challenges. Balancing a user-friendly interface with effective validation required careful consideration of design and functionality. Additionally, adapting the code to be responsive posed its own set of challenges, ensuring a seamless experience across various devices. Despite these hurdles, the resulting code reflects a comprehensive understanding of both responsive design principles and web development fundamentals.

⚙ How to Use

  1. Clone the repository.
    git clone https://github.com/Cauebf/form-validation.git
  2. Open index.html in your web browser.

🤝 Contributing

Contributions are welcome! Open issues or pull requests for improvements.

📜 License

This code sample is licensed under the MIT License.

💬 Contact

For any inquiries or collaboration opportunities, reach out via:

Gmail LinkedIn Instagram

(back to top)

About

A simple form validation code sample focusing on JavaScript. The script provides visual feedback on form submission, indicating empty and filled fields with distinct styling. This project was created for testing form validation skills and is responsive.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published