Title: Missing attribute
Last modified: July 21, 2023

---

# Missing attribute

 *  [jonte98](https://wordpress.org/support/users/jonte98/)
 * (@jonte98)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/missing-attribute/)
 * The required attribute should be present when element is required, but its not.
   Yes, there is aria-required but its not compatible with :required psuedo class.
   Makes it so much harder to accurately style when required fields are not filled
   in.
 * I’d love this small tweak to have required attribute on all fields when selecting
   required on the field.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/missing-attribute/#post-16914080)
 * This plugin doesn’t set the [`required`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required)
   attribute because it doesn’t rely on the browser’s built-in validator for frontend
   validation.
 *  Thread Starter [jonte98](https://wordpress.org/support/users/jonte98/)
 * (@jonte98)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/missing-attribute/#post-16919019)
 * It would be great if the option was there. Styling the form errors will be so
   much easier.
 *  [Jürgen](https://wordpress.org/support/users/trimension/)
 * (@trimension)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/missing-attribute/#post-16951922)
 * The behavior and semantics of the two “required” attributes are different. It’s
   not just about the styling. reqired is the modern html5 attribute, aria-requird
   is not html5-conform…
 * The user should be able to decide for himself which variant he uses, perhaps 
   via an additional setting.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Missing attribute’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jürgen](https://wordpress.org/support/users/trimension/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/missing-attribute/#post-16951922)
 * Status: not a support question