<label for="email">Enter your example.com email:</label> <input type="email" id="email" pattern=".+@example\.com" size="30" required />
label { display: block; font: 1rem 'Fira Sans', sans-serif; } input, label { margin: 0.4rem 0; }