Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quotation marks in textarea placeholder

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.

like image 386
Paul Clift Avatar asked Dec 02 '18 17:12

Paul Clift


People also ask

Can we use placeholder in textarea?

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.

How do you style placeholder text?

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.

What is the:: placeholder pseudo-element used for?

::placeholder. The ::placeholder CSS pseudo-element represents the placeholder text in an <input> or <textarea> element.

How do you hide the placeholder text of an input field?

Hi, The only way to hide the “placeholder” text of input field in CSS is just change the color into white or transparent.


1 Answers

You can use &quot; for the quotation mark symbol. For example:

<textarea name="content" placeholder="&quot;Hello&quot;"></textarea>
like image 121
Omari Celestine Avatar answered Oct 06 '22 17:10

Omari Celestine