How to Add Icon in Placeholder in Html
In this tutorial, we will learn how to add a prefix icon to an input type field using HTML and CSS. A prefix icon is a small image that appears before the text input, such as a dollar sign for a currency field or a magnifying glass for a search field. Adding a prefix icon can make your input fields more attractive.
![Profile Photo](https://fontawesomeicons.com/images/abhishek.png)
written
![Profile Photo](https://fontawesomeicons.com/images/anil.png)
reviewed
![Profile Photo](https://fontawesomeicons.com/images/calendar2.png)
updated
![Feedback Image](https://www.sarkarinaukriexams.com/images/editor/1709103057contribution.png)
Thanks for your feedback!
Your contributions will help us to improve service.
Ad