Reputation: 1
I'm trying to give a bold font to an input this way below but it doesn't work show as a plan text simple
<input style="font-weight: bold;" name="lg" id="ur" type="hidden" required="" value="<? echo ?>" > <? echo ;?>
Upvotes: 0
Views: 165
Reputation: 131
Change code to
<input style="font-weight: bold;" name="lg" id="ur" type="text" required="" value="<? echo ?>" > <? echo ;?>
Upvotes: 1
Reputation: 4360
After the explanation given by the OP in the comments, I guess the OP just wanna print a text from a PHP variable or plain text.
For this you don't need <input>
. You can simply use a HTML tag and add the style attribute to it. And the simplest solution is,
<strong><?php echo "Something"; ?></strong>
Upvotes: 0
Reputation: 18123
You have type="hidden"
, so the input won't be shown.
I'm guessing that you added the inline style to the wrong input.
If not, then you should change the type to type="text"
.
Good luck.
Upvotes: 3