<li><label> Name: <input type="text" name="name" required="required" /></label></li>
<li><label> Comment: <input type="text" name="comment"
In the W3C WCG20, SCR25: Using Dynamic Web Content Accessibility to programmatically identify form fields as required, it also mentions "required" attribute for required fields. But, in that script sample, it shows
setAttrNS(field, "required", "true");
And, screen reader should be able to read out.
Both above sites use the same attribute "required". My question is here :
Can screen reader still read out if required="required"?
I incline to HTML5 since it's much clean and easy in the design.