Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/withaarzoo/emoji-form-validation
This simple HTML and CSS code snippet showcases a form field with password validation, accompanied by emoji feedback based on the entered password's validity.
https://github.com/withaarzoo/emoji-form-validation
codewithaarzoo css html
Last synced: about 12 hours ago
JSON representation
This simple HTML and CSS code snippet showcases a form field with password validation, accompanied by emoji feedback based on the entered password's validity.
- Host: GitHub
- URL: https://github.com/withaarzoo/emoji-form-validation
- Owner: withaarzoo
- Created: 2024-02-25T13:25:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-26T05:45:10.000Z (9 months ago)
- Last Synced: 2024-02-26T14:32:55.313Z (9 months ago)
- Topics: codewithaarzoo, css, html
- Language: HTML
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Emoji Form Validation
This simple HTML and CSS code snippet showcases a form field with password validation, accompanied by emoji feedback based on the entered password's validity. The form validates whether the password input meets the requirement of being at least six characters long .
## Preview
![preview](https://github.com/withaarzoo/Emoji-Form-Validation/assets/59678435/e16f2920-58dd-4a1a-b6d2-20499b11d5bf)## How to Use
1. Clone the repository or download the HTML and CSS files.
2. Open the `index.html` file in a web browser.## Features
- **Password Validation**: The form validates whether the entered password is at least six characters long.
- **Emoji Feedback**: Upon validation, an emoji is displayed based on the validity of the password.
- 😃: Indicates a valid password.
- 😳: Indicates an invalid password.## Files
- **index.html**: Contains the HTML structure for the form.
- **style.css**: Contains the CSS styles for the form and emoji feedback.## CSS Structure
The CSS is organized into different modules for better maintainability:
- **align**: Styles to align elements in the center of the page.
- **icon**: Styles for the emoji icons.
- **base**: Base styles for the entire page.
- **headline**: Styles for headline elements (h3).
- **paragraph**: Styles for paragraph elements (p).
- **form**: Styles for form elements and their validation.## Customization
- You can modify the CSS properties to change the appearance of the form, such as colors, font sizes, or alignments.
- Adjust the password validation criteria by modifying the `pattern` attribute in the HTML file.## Credits
This code snippet is inspired by the educational content provided by Code with Aarzoo.
Feel free to use and modify this code according to your needs. If you have any suggestions or improvements, please submit a pull request or open an issue. Happy coding!