Skip to content

Commit 60d74a2

Browse files
authored
Merge pull request #190 from PublicisSapient/accessibleFormValidation
[Issue#171-SEO] - Updated page heading, title and meta description for Accessible Form Validation Page
2 parents ea3d0e6 + c49d8b9 commit 60d74a2

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

content/body/form-error-checking.php

+24
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,30 @@
271271
}
272272
</script>
273273

274+
<script type="application/ld+json">
275+
{
276+
"@context": "https://schema.org",
277+
"@type": "WebPage",
278+
"name": "Accessible Form Validation: HTML5 and Custom Approaches",
279+
"description": "Learn how to make form validation and error checking accessible using HTML5 and custom validation methods. Includes code examples and best practices.",
280+
"url": "https://www.useragentman.com/enable/form-error-checking.php",
281+
"mainEntity": [
282+
{
283+
"@type": "HowTo",
284+
"name": "Using HTML5 for Accessible Form Validation",
285+
"text": "You can use just the required and pattern attributes on HTML forms to do client-side validation without JavaScript.",
286+
"url": "https://www.useragentman.com/enable/form-error-checking.php#using-native-html5-validation--heading"
287+
},
288+
{
289+
"@type": "HowTo",
290+
"name": "Using Custom Validation for Accessible Form Validation",
291+
"text": "You can use enable-a11y node package to handle client-side form validation and error messages.",
292+
"url": "https://www.useragentman.com/enable/form-error-checking.php#using-custom-validation--heading"
293+
}
294+
]
295+
}
296+
</script>
297+
274298

275299
<?= includeNPMInstructions("accessibility", [], null, false, [
276300
"needsAccessibilityLib" => true,

templates/data/meta-info.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"desc": "Many designers will turn off focus styles on web apps. There are better solutions that ensure they appear for only the users that need them."
8181
},
8282
"form-error-checking.php": {
83-
"title": "Accessible Form Error Checking",
84-
"desc": "It is not hard to ensure forms work correctly with screen readers and other technology."
83+
"title": "How to Ensure Accessible Form Validation and Error Checking",
84+
"desc": "Learn how to make your form validation and error checking accessible. Follow best practices to ensure your web forms are compliant with WCAG guidelines and user-friendly for everyone."
8585
},
8686
"form.php": {
8787
"title": "Accessible Form Structure",

templates/includes/documentation-header.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class="enable-flyout enable-flyout__level enable-flyout__dropdown">
305305
}, {
306306
"id": "flyout__link",
307307
"props": {
308-
"label": "Form Error Checking",
308+
"label": "Accessible Form Validation",
309309
"url-slug": "form-error-checking",
310310
"alt": ""
311311
}
@@ -589,7 +589,7 @@ class="enable-flyout enable-flyout__level enable-flyout__dropdown">
589589
"content": [{
590590
"id": "flyout__link",
591591
"props": {
592-
"label": "Form Error Checking",
592+
"label": "Accessible Form Validation",
593593
"url-slug": "form-error-checking",
594594
"alt": ""
595595
}

0 commit comments

Comments
 (0)