Answers for "html placeholder"

9

placeholder select html

<!DOCTYPE html>
<head>
</head>
<body>
  <select name="food">
    <!-- The following line makes a placeholder -->
    <option value="" disabled selected hidden>select food</option>
    <option value="apple">apple</option>
    <option value="melon">melon</option>
  </select>
</body>
Posted by: Guest on December-21-2020
3

placeholder html

<input placeholder="text"> 
<!-- Change "text" to what you would like the placeholder text to be -->
Posted by: Guest on February-28-2021
1

placeholder html

<input placeholder = "Placeholder"></input>
Posted by: Guest on March-21-2021
1

input text hint

placeholder="123-45-678"
Posted by: Guest on September-16-2020
0

html css placeholder input font-size

Placeholder text will automatically inherit the font family and font size of the regular input text, but you may be in a situation where you want to change the placeholder text color. You can accomplish that with the ::placeholder pseudo-element.
Posted by: Guest on May-18-2020

Browse Popular Code Answers by Language