css - Html <code> with placeholder -


how need add placeholder attribute < code> < /code> tag in < input> < /input>?

<input type="text" name="fname" placeholder="first name"><br> 

you can't have placeholders in <code></code> it's not input field... might want use <textarea placeholder="your placeholder"></textarea> inputing code...

example showing difference here


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -