This should be pretty straight forward.... I would like the placeholder
text in a textarea
to display quotation marks. As in "HELLO".
I tried the usually-reliable "\"Hello\"" but that doesn't work.... it outputs simply \ because it sees that contained between opening and closing quotes.
The placeholder attribute specifies a short hint that describes the expected value of a text area. The short hint is displayed in the text area before the user enters a value.
Use the ::placeholder pseudo-element to style your placeholder text in an <input> or <textarea> form element. Most modern browsers support this, but for older browsers, vendor prefixes will be required.
::placeholder. The ::placeholder CSS pseudo-element represents the placeholder text in an <input> or <textarea> element.
Hi, The only way to hide the “placeholder” text of input field in CSS is just change the color into white or transparent.
You can use "
for the quotation mark symbol. For example:
<textarea name="content" placeholder=""Hello""></textarea>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With