Skip to content
Learn Netverks

Lesson

Step 25/36 69% through track

form-states

Validation and field states

Last reviewed May 28, 2026 Content v20260528
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

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

Forms are where users convert and where security mistakes (validation, labels) show up first.

You will apply Validation and field states in contexts like: Smaller marketing sites, internal dashboards, and projects that need quick responsive layout with minimal JS.

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.

Communicate errors with is-danger on the input and a matching help is-danger message. Success states use is-success the same way. Add has-icons-right on control when you show a status icon.

Server vs client validation

Bulma styles states you apply in markup; it does not run validators. In production, set classes from your framework after server-side validation, or toggle them from accessible client-side logic—never depend on color alone.

Loading buttons

Add is-loading to a button during async submits so users see progress without custom spinners.

Important interview questions and answers

  1. Q: Where do danger styles go?
    A: On the control (input is-danger) and the help text (help is-danger) so both border and message reinforce the error.
  2. Q: Does Bulma replace HTML5 validation?
    A: No—it styles outcomes; you still use native constraints and accessible error text.

Self-check

  1. Which class shows a spinner on a submit button?
  2. How do you pair an error message with a red border?

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

  • is-danger without color alone?
  • Help text wiring?

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