We can use "html-placeholder" attribute to set it.
Example :
Example :
<apex:inputText value="{!username}" id="username" html-placeholder="Username"/>
<apex:inputSecret value="{!password}" id="password" html-placeholder="Password"/>
Post a Comment
If you have any doubts, Please comment below and I will respond to you.