How to validate a WordPress site that contains the attribute aria-required=’true’ under the W3C Compliance

You cannot validate a WordPress site if you have the aria-required attribute… So what will happen to your dream? — XHTML and CSS logos in the footer.

You need this attribute to make a certain field “required” like for email, and name.

Basically, from a default theme in WordPress, you have this:

to validate this code just remove these  lines:

This is only for the name field, and same process will take place to the email field.

Warning: Aria-required is a piece of code to help visually impaired persons navigate through your site. If you are going to remove this code, your website may not be accessible for those persons.