What is the difference between Tag Helper and Blazor in Asp.net core.
Tag Helper intoroduced in asp.net core 2.0 and Blazor introduced in Asp.net core 3.0.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #816 · 2.8K reputationPosted Jul 2, 2019, 9:58 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 23, 2019, 7:36 PM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 24, 2020, 2:05 AM EDT
The tag Helpers are Razor page specific. Blazor uses components. From the usage perspective, they both look same. For example, when you have a tag helper, you can use that same like an HTML element where the tag helper properties can be used like regular HTML attributes.
Blazor uses components. And components can be used same like HTML elements too. A component's properties can be accessed like an HTML attribute. So, when someone look into the usage code, he/she wont be bale to differentiate if an element is a Blazor component or tag helper.
But, the way tag helper is created is different than blazor. Tag helpers render pure HTML but the Blazor component is not directly an HTML renderer. Rather Blazor component works integrated with the Blazor ecosystem. Theoretically, a razor page tag helper should have been usable in Blazor, but until today, Blazor cannot recognize Razor tag helpers (which is unfortunate). On the contrary, a blazor component can be used within the Razor page using the component element. For example, here is a sample usage of the Blazor component within Razor pages.
Farhan AhmedRank #73 · 25K reputationPosted Oct 24, 2020, 3:16 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 24, 2020, 3:43 AM EDT
ImageTagHelpercan append a version number to the image name.Guest UserRank #1,654 · 929 reputationPosted Oct 24, 2020, 9:54 AM EDT
Guest UserRank #1,654 · 929 reputationPosted Oct 24, 2020, 9:59 AM EDT