<form>
  <div>
    <label for="name">Name</label>
    <input type="text" id="name" name="pet_name" />
  </div>
</form>
form {
  border: 2px solid green;
  padding: 1em;
  max-width: 600px;
}

label, input {
  display: block;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.