Skip to content

gowsiraj/Assignment-02-HTML-Validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTML Form Validation in a Personal Portfolio Contact Form

This portfolio website includes a contact form with built-in validation using HTML5 attributes to ensure user input is correct and structured. HTML validation helps prevent errors and enhances user experience by providing instant feedback.

HTML5 validation attributes

  1. required → Ensures that essential fields are not left empty.
  2. type → Specifies the type of input, such as email, number, or text, for automatic validation.
  3. placeholder → Provides hints for users to enter correct data.

Implementation of Validation in the Contact Form

  1. The input fields for name, email, and phone use appropriate types and patterns to enforce valid input.
  2. The textarea requires a minimum length to ensure detailed messages.
  3. The submit button is only enabled when all fields are correctly filled.

By using HTML5 validation, the form enhances accessibility and usability while reducing reliance on JavaScript for basic checks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages