dcsimg
 

Submitted by: Octavia Anghel(octaviaanghel@gmail.com)

Wednesday Jan 31st 2018 by Octavia Amghel

Language: Web, Level: Beginner: - Learn to use the input placeholder attribute in your HTML5 forms to show what's expected in that field.

The HTML5 <input> attribute allows you to display a hint value describing what is expected as the field value in a form.

<orm action="/action_page.php">
  <input type="text" name="fname" placeholder="First name">
<input type="text" name="lname" placeholder="Last name">
<input type="submit" value="Submit"> </form>

This attribute works on the following types of entries: text, phone, email, url, search and password.

Home
Mobile Site | Full Site