Professional Documents
Culture Documents
HTML Forms: Click To Add Text
HTML Forms: Click To Add Text
HTML Forms: Click To Add Text
Type Description
<input type="text"> Defines a one-line text input field
<input type="radio"> Defines a radio button (for selecting one of many
choices)
• The <button> element defines a
clickable button:
• <button type="button" onclick="alert('Hello
World!')">Click Me!</button>
HTML Input Types
• The <input type="datetime-local"> specifies a
date and time input field, with no time zone.
• (Except Safari , Firefox)
• <form>
Birthday (date and time):
<input type="datetime-
local" name="bdaytime">
</form>
Input Type Email
• <form>
Telephone:
<input type="tel" name="phone" pattern="[0
-9]{3}-[0-9]{2}-[0-9]{3}">
</form>
• The <input type="time"> allows the user to
select a time (no time zone).
• <form>
Select a time:
<input type="time" name="usr_time">
</form>
Input Type Url
• Input Type Url
• The <input type="url"> is used for input fields
that should contain a URL address.
• <form>
Add your homepage:
<input type="url" name="homepage">
</form>
Input Type Week