-4

My professor asked us to make this design in HTML & CSS, my problem is with customizing the date. The wanted result is for to show Birthdate, but mine shows mm/dd/yyyy. I tried to put placeholder, but it didn't work.

This is my code:

 <input type="date" name="Birthdate" placeholder="Birthdate"/>  

I tried to look it up on YouTube, but I haven't found anything useful yet. Any advice?

Rama
  • 1
  • 3
  • Does this answer your question? [Are there any style options for the HTML5 Date picker?](https://stackoverflow.com/questions/14946091/are-there-any-style-options-for-the-html5-date-picker). – ATP Aug 24 '23 at 19:33
  • No. It does not. – Rama Aug 25 '23 at 07:17
  • Having a look at a good reference such as https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date beforehand, could have already indicated to you that for a `date` input field, there _is_ no `placeholder` attribute - if there was, you would have found it under "additional attributes", same as for example for the `text` type, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text#additional_attributes As a student, you should show a bit of reasonable effort to inform yourself. – CBroe Aug 25 '23 at 07:20
  • I didn't find the answer to my question in the link you provided. – Rama Aug 25 '23 at 07:39

0 Answers0