Actually, you have quite a few errors in your HTML code. Everything you type in the HTML section on CodePen is automatically considered to be inside the <body>
element, meaning you don’t have to declare doctype
or use <html>
, <body>
or <head>
tags (<div>
and <h1>
can’t be inside the <head>
tag anyway). I’ve also noticed a couple more things - you have a total of three open div
elements, but only one closing </div>
tag. And the attribute required
is a boolean attribute, so it doesn’t have an explicit value but you just put it inside a tag if you want its value to be ‘true’ (like so: <input type="email" name="email" placeholder="Whatever" required>
).
As for CSS, as @austinmoore1492 said, get rid of the style tags (and delete the extra # in color value that you currently have) and everything should work fine 
I hope this helped, good luck with coding and feel free to ask if there’s anything you don’t understand 