Here’s where we’ll end up:
CodePen Embed Fallback
Things sure have gotten easier than they were!
The reason is that we can finally style the ::before and ::after pseudo-elements on the tag itself. This means we can keep and style an and won’t need any extra elements. Before, we had to rely on the likes of an extra
Let’s look at the HTML
Nothing special here. We can style our inputs with just this HTML:
That’s it for the HTML part, but of course it’s recommended to have name and id attributes, plus a matching