Quantcast
Channel: Made to Order Software Corporation - editor
Viewing all articles
Browse latest Browse all 22

Put the label of an HTML Input inside the Input element

$
0
0

Reflection of trees in a mountain lake.

Update:

With HTML5 running on pretty much all platforms, you want to use the placeholder attribute instead of any sort of tricks to place a label inside your input widgets.

This is done like this:

<input type="text" placeholder="Phone Number"/>

This example will show "Phone Number" inside the input box until the user types some text in that box.

You can test with the box right here. This is just that one <input .../> tag I placed in my page HTML. (It is not in a form, but the widget itself will work as expected.)

For additional details, I ...

read more


Viewing all articles
Browse latest Browse all 22

Latest Images

Trending Articles





Latest Images