You can use inputField tag instead of inputtext. inputfield tag will inherit proporty of your orginal field. You can define you help text in the field of the object.
For example:
If we have rating field on account. Ill update my help text in the field itself. Now in Visualforce page ill refer it using <apex:inputField value="{!acc.rating}"/>.
Please refer below link which might help you in this
https://howtodoitinsalesforce.blogspot.com/2016/12/display-helptext-in-visualforce-page-in.html
https://www.biswajeetsamal.com/blog/displaying-help-text-in-visualforce-page/
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
You can use inputField tag instead of inputtext. inputfield tag will inherit proporty of your orginal field. You can define you help text in the field of the object.
For example:
If we have rating field on account. Ill update my help text in the field itself. Now in Visualforce page ill refer it using <apex:inputField value="{!acc.rating}"/>.
Thanks,
Ashish Singh.