Void tags (those that have no closing tags, such as input and img and br) cannot contain before or after pseudo elements. Unless you use a CSS trick where you set the appearance property to none. This prevents the browser from replacing the element and allows you to have pseudo-elements (that said, you’ll also not have the image or form field you replaced, so only use this when you know what you’re doing check out: https://www.htmhell.dev/adventcalendar/2023/2/ for a usage example and some more info)