Back to CSS

CSS Tutorial

Forms and Buttons

Style form fields, labels, focus states, and buttons.

Good form styling improves clarity and usability.

Focus states are important because they help keyboard users understand where they are.

css
input {
  border: 1px solid #d1d5db;
  padding: 12px;
}

button {
  background: #2563eb;
  color: white;
}