<!-- IMPLICIT LABEL (not recommended for use) - the label wraps the input. -->
<label> 
  First Name:
  <input type="text" name="firstname" />
</label>

<br><br>

<!-- EXPLICIT LABEL (recommended for use) - the label is connected to an input via "for" and "id" -->
<label for="explicit-label-name">Last Name: </label>
<input type="text" id="explicit-label-name" name="lastname" />

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.