Answer to Question #303825 in HTML/JavaScript Web Application for taufiq umarHTML Placeholder Attribute Show Placeholder Attribute. Use the below reference image link:. https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-2-1-html-placeholder-attribute-op.png Answer to Question #256219 in HTML/JavaScript Web Application for sagun poudelCreate a form, using HTML, for admission to a University. The form should ask for the following information: Your email id as user name (it should be of the type ) A pin chosen by you (should have a minimum size of 4 decimal digits) Name of the Student City in which student is residing (You should create a drop-down list of about 4 to 6 cities for selection of City, default value for City should be Mumbai) Select from the options Yes/No for the question Mathematics at 10+2? The form should include a SUBMIT button. View Discussion Improve Article Save Article View Discussion Improve Article Save Article The placeholder attribute specifies a short hint that describes the expected value of an input field/text area. The short hint is displayed in the
field before the user enters a value. <element placeholder=""> Elements: This method can have following attributes:
Attribute:
The attribute for each of the above element is placeholder. html
Output: Example: With <textarea> element html
Output: Supported Browsers: The browser supported by placeholder Attribute are listed below:
What is placeholder attribute in HTML?The placeholder attribute specifies a short hint that describes the expected value of a input field / textarea. The short hint is displayed in the field before the user enters a value.
How do you give a textbox a hint in HTML?If you want to set a hint for text area or input field, then use the HTML placeholder attribute. The hint is the expected value, which gets displayed before the user enters a value, for example, name, details, etc.
|