Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid and Invalid CSS selectors #178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
modify: modify typo errors
  • Loading branch information
Estifanos12 committed Jul 9, 2023
commit 6c7df4e59c1c4e295d1955791fb23a567e3bb727
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ If you have HTML elements that are empty, i.e., the content has yet to be set ei

### Use `:valid` or `:invalid` CSS Selector to validate HTML Input Elements

If you want to validate HTML input element without using javascript, you can use `:valid` or `:invalid` css selector. The `:valid` and `:invalid` CSS selectors are used to style HTML input elements based on their validity.
If you want to validate HTML input element without using javascript, you can use `:valid` or `:invalid` CSS selector. The `:valid` and `:invalid` CSS selectors are used to style HTML input elements based on their validity.
When an input element is **valid**, the `:valid` selector can be used to apply a specific style to it. Conversely, when it is **invalid**, the `:invalid` selector can be used to apply a different style to it.

**Examples**
Expand Down