Use HTML5 to Require a Fields

Submit Username

I am trying to use required validation on html but i got this (Your text input element should have the required attribute) message. Can someone tell me that my required validation is correct or incorrect?

What have you tried so far?

Documentation here: