How to align the placeholder center in html and css? Please answer a fast as you can
Answers
Answered by
1
Answer:
hope you got your answer
please mark me as brainliest
Attachments:
Answered by
0
Answer:
The HTML5 placeholder attribute is used to show a small hint to describe a value to help users understand what value they should enter in a text field. The placeholder text by default is left aligned. I’ll show you how using CSS, you can align the placeholder text anywhere you want in a text box.
Using placeholder Attribute in a textbox
This is how you add the placeholder attribute to an input box of type text.
<input type='text' id='name' placeholder='Enter your name' />
If you see the output, the placeholder text is by default left aligned. (See the above image)
Explanation:
hope it is helpful to you
please mark as brainlist
Similar questions