Update intro.md

pull/3807/head
Rick Anderson 2017-07-24 07:56:01 -07:00 committed by GitHub
parent fb775f0348
commit 774ec2df9f
1 changed files with 2 additions and 3 deletions

View File

@ -5,9 +5,8 @@ description: Learn what tag helpers are and how to use them in ASP.NET Core.
keywords: ASP.NET Core, tag helpers
ms.author: riande
manager: wpickett
ms.date: 10/14/2016
ms.date: 7/14/2017
ms.topic: article
ms.assetid: 7a47f0b9-dd1e-4d25-97ec-2346a5d3ce2c
ms.technology: aspnet
ms.prod: asp.net-core
uid: mvc/views/tag-helpers/intro
@ -20,7 +19,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT)
## What are Tag Helpers?
Tag Helpers enable server-side code to participate in creating and rendering HTML elements in Razor files. For example, the built-in `ImageTagHelper` can append a version number to the image name. Whenever the image changes, the server generates a new unique version for the image, so clients are guaranteed to get the current image (instead of a stale cached image). There are many built-in Tag Helpers for common tasks - such as creating forms, links, loading assets and more - and even more available in public GitHub repositories and as NuGet packages. Tag Helpers are authored in C#, and they target HTML elements based on element name, attribute name, or parent tag. For example, the built-in `LabelTagHelper` can target the HTML `<label>` element when the
`LabelTagHelper` attributes are applied. If you're familiar with [HTML Helpers](http://stephenwalther.com/archive/2009/03/03/chapter-6-understanding-html-helpers), Tag Helpers reduce the explicit transitions between HTML and C# in Razor views. [Tag Helpers compared to HTML Helpers](#tag-helpers-compared-to-html-helpers) explains the differences in more detail.
`LabelTagHelper` attributes are applied. If you're familiar with [HTML Helpers](http://stephenwalther.com/archive/2009/03/03/chapter-6-understanding-html-helpers), Tag Helpers reduce the explicit transitions between HTML and C# in Razor views. In many cases, HTML Helpers provide an alternative approach to a specific Tag Helper, but it's important to recognize that Tag Helpers do not replace HTML Helpers and there is not a Tag Helper for each HTML Helper. [Tag Helpers compared to HTML Helpers](#tag-helpers-compared-to-html-helpers) explains the differences in more detail.
## What Tag Helpers provide