Question about required field and placeholder

No need for concern, this section works perfectly! This is just a question to satisfy my curiosity.

Currently working on the “Use HTML5 to require a field” section but noticed the placeholder disappears because of adding “required” after the “input type”.

My question: What would the code look like, if possible, to have a “required alert” and “placeholder text”, appear in a HTML5 textbox?

//Input would not work with both commands Submit

Answered my own question! Sorry for posting