Skip to content
Learn Netverks

Lesson

Step 25/36 69% through track

validation-states

Validation states

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Validation states—the ideas, syntax, and habits you need before moving on in Bootstrap.

Bootstrap patterns appear constantly in legacy apps and rapid admin UI work.

You will apply Validation states in contexts like: Internal tools, WordPress themes, Laravel apps, and teams that want opinionated UI without writing every rule from scratch.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs.

Toward the end of the track—use it to consolidate patterns before the capstone or summary lessons.

Bootstrap communicates field validity with modifier classes—not magic validation logic. Add is-valid or is-invalid on controls; pair with valid-feedback or invalid-feedback siblings that show messages.

Server vs client validation

Your backend or JavaScript decides validity; Bootstrap only styles the result. For submit-time validation on a whole form, add was-validated to the <form> and use native required / pattern attributes—invalid fields pick up styles after submit attempt.

Accessibility

Set aria-invalid="true" on invalid fields and reference error text with aria-describedby. Visual red borders are not enough for screen reader users.

Self-check

  1. Which class shows the green check styling on an input?
  2. What does was-validated on the form enable?
  3. Name one ARIA attribute that complements is-invalid.

Interview prep

How do you show invalid feedback accessibly?

Use is-invalid, associate invalid-feedback with aria-describedby, and avoid color alone.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • How show errors without color alone?
  • What is-invalid pairs with?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump