How to add placeholder text to search box in html?

0 votes
100 views
asked Oct 14, 2013 in HTML by john (4,220 points)
Hi All

   How to add placeholder text to search box in html?

1 Answer

0 votes
answered Oct 14, 2013 by anonymous

Use the html5 placeholder property:

<input type="text" placeholder="Search..." />
...