Tredence interview question

How do you make a input field mandatory in HTML5?

Interview Answer

Anonymous

20 May 2016

by adding 'required' in the attribute.