Adding prompt text to INPUT
<!DOCTYPE html>
<!-- http://dhtmlexamples.com/2010/12/04/adding-prompt-text-to-input-and-textarea-tags-in-html/ -->
<html>
<body>
<table>
<tr>
<th>Username:</th>
<td><input id="usrnm" type="email" name="username" placeholder="user@domain.com" /></td>
</tr>
<tr>
<th>Password:</th>
<td><input id="psswd" type="password" name="password" placeholder="Top secret password" /></td>
</tr>
<tr>
<th>Comments:</th>
<td><textarea id="cmmnts" cols="30" rows="5" placeholder="Comments"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input id="submitBtn" type="submit" value="Submit" /></td>
</tr>
</table>
</body>
</html>
0 comments:
Post a Comment