--- title: Input with prefix tags: interactivity,visual,intermediate --- Creates an input with a visual, non-editable prefix. - Use `display: flex` to create a container element. - Remove the border and outline from the `input` field and apply them to the parent element instead to make it look like an input box. - Use the `:focus-within` selector to style the parent element accordingly, when the user interacts with the `input` field. ```html