# ASP.NET Core QRCode Overview

The QRCode TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI QRCode widget. To add the component to your ASP.NET Core app, you can use either.

QR codes take a piece of information from a transitory media, place it into the cell phone, and enable the cell phone to quickly read these generated images. All graphics are rendered on the client by using Canvas or SVG.

The QRCode generates [Canvas](https://en.wikipedia.org/wiki/Canvas_X) and [Scalable Vector Graphics (SVG)](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) images that represent [Quick Response (QR) codes](https://en.wikipedia.org/wiki/QR_code).

<CtaPanelIntroduction></CtaPanelIntroduction>

To see the component in action, check the examples:

* [Demo page for the QRCode HtmlHelper](https://demos.telerik.com/aspnet-core/qrcode/index)

* [Demo page for the QRCode TagHelper](https://demos.telerik.com/aspnet-core/qrcode/tag-helper)

## Initializing the QRCode

The following example demonstrates how to define the QRCode.

```Razor HtmlHelper
    @(Html.Kendo().QRCode()
      .Name("qrUrl")
    )
```

```Razor TagHelper
    <kendo-qrcode name="qrUrl"></kendo-qrcode>
```

## Basic Configuration

To configure the QRCode, pass the configuration options as attributes, for example:

* The name of the QRCode is mandatory—it specifies the `id` and the `name` attributes of the QRCode element.
* The `Value()` option allows you to set the initial QRCode value.
* The error correction level allows you to control the density of the QRCode image. You can specify it by using the `ErrorCorrection()` method.

```Razor HtmlHelper
    @(Html.Kendo().QRCode()
        .Name("qrUrl")
        .Value("https://docs.telerik.com/aspnet-core/introduction")
        .ErrorCorrection(QRErrorCorrectionLevel.M)
        .Size(150)
        .Border(border => border.Color("#AA11AA").Width(2))
    )
```

```Razor TagHelper
    <kendo-qrcode name="qrUrl" 
        value="https://docs.telerik.com/aspnet-core/introduction" 
        error-correction="QRErrorCorrectionLevel.M 
        size=" 150">
        <border color="#AA11AA" width="2" />
    </kendo-qrcode>
```

## Functionality and Features

* [Encoding](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/barcodes/qrcode/encodings)—The QRCode supports a set of encoding conventions.
* [Types](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/barcodes/qrcode/types)—Explore the available types of overlay.

## Next Steps

* [Getting Started with the QRCode](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/barcodes/qrcode/getting-started)

* [Basic Usage of the QRCode HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/qrcode)

* [Basic Usage of the QRCode TagHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/qrcode/tag-helper)

## See Also

* [Using the API of the QRCode for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/qrcode/api)
* [Knowledge Base Section](https://www.telerik.com/aspnet-core-ui/documentation/knowledge-base)
