Jasper Jye
Jasper Jye

Reputation: 81

HTML text form value

<input type="text" name="name" value="n"tee">

Is there any way to show n"tee in the text box?

Upvotes: 1

Views: 43

Answers (1)

No Idea For Name
No Idea For Name

Reputation: 11577

you can use special char:

&quot;

and your code will be:

<input type="text" name="name" value="n&quot;tee">

The double quote (") has special meaning inside a HTML attribute. If you want to put it into an input value, you must (this is not a true must but a good rule of thumb) write it as its entity &quot;. There is no way around it.

Upvotes: 1

Related Questions