Hi @Falanga, Rod, DOH ,
Thanks for reaching out.
Blazor doesn’t have HTML helpers in the same sense that MVC does (for example, @Html.TextBoxFor). That’s mainly because Blazor uses a different model altogether. Instead of helpers that generate HTML, Blazor is built around components.
In Blazor, components effectively take the place of HTML helpers. Built-in components like InputText, InputSelect, EditForm, and ValidationMessage are designed to handle common UI patterns, data binding, and validation for you.
https://learn.microsoft.com/aspnet/core/blazor/forms/input-components?view=aspnetcore-10.0
When used correctly (for example, with proper labels and form structure), they already support accessibility features such as screen readers and keyboard navigation, since Blazor applications render standard HTML that browsers and assistive technologies understand.
https://learn.microsoft.com/aspnet/core/blazor/?view=aspnetcore-10.0
For ADA/accessibility concerns, the usual approach in Blazor is to:
- Rely on these built-in form components where possible: https://learn.microsoft.com/aspnet/core/blazor/forms/?view=aspnetcore-10.0
- Create reusable custom components that bake in accessibility requirements once, and then reuse them consistently across the app: https://learn.microsoft.com/aspnet/core/blazor/components/?view=aspnetcore-10.0
This gives you a similar benefit to HTML helpers in MVC: less repetitive markup, fewer mistakes, and more consistent, accessible output, just expressed through components instead of helper methods.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.