how to add extra tag to Text item in apex
when i create text item some tag generating like
<input type="text" id="userType" placeholder="Enter the Name" />
along with this how to add one more tag like
<span id="typePrompt">Enter the Full Name</span>
exp:
<html>
<body>
<style>
span#typePrompt { display: none; }
input#userType:hover + span#typePrompt { display: inline; }
input#userType:focus + span#typePrompt { display: inline; }
</style>
<label>User Name: </label>
<input type="text" id="userType" placeholder="Enter the Name" />
<span id="typePrompt">Enter the Full Name</span>
<br />
</body>
</html>
how this html file text field working, same way i want to achieve in apex for text field.