user3807136
user3807136

Reputation: 1

Just trying to give a bold font to an input text but every it show normal text

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

Answers (3)

KR12
KR12

Reputation: 131

Change code to

<input style="font-weight: bold;" name="lg" id="ur" type="text" required="" value="<? echo ?>" > <? echo ;?> 

Upvotes: 1

Sarvap Praharanayuthan
Sarvap Praharanayuthan

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

GreyRoofPigeon
GreyRoofPigeon

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

Related Questions