# ASP.NET Core Rating Overview

The Telerik UI Rating TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI Rating widget.

The Rating allows to intuitively rate by selecting number of items stars from a predefined maximum number of items.

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

## Initializing the Rating

The following example demonstrates how to define the Rating.

```Razor HtmlHelper
    @(Html.Kendo().Rating()
        .Name("rating")
    )
```

```Razor TagHelper
    <kendo-rating name="rating"></kendo-rating>
```

## Basic Configuration

The following example demonstrates the basic configuration for the Rating.

```Razor HtmlHelper
    @(Html.Kendo().Rating()
        .Name("rating")
        .Min(1)
        .Max(6)
        .Value(3)
    )

    <script>
    $(function() {
        // The Name() of the Rating is used to get its client-side instance.
        var rating = $("#rating").data("kendoRating");
    });
    </script>
```

```Razor TagHelper
    <kendo-rating name="rating" min="1" max="6" value="3"></kendo-rating>
```

## Functionality and Features

| Feature                                                                                                                  | Description                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| [Selection](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/selection)                  | The Rating allows you to control the selection of its items.                                                   |
| [Precision](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/precision)                  | You are able to control the precision with which a rating is selected.                                         |
| [Label](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/label)                          | The component allows you to customize its label.                                                               |
| [Tooltip](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/tooltip)                      | The rating items display tooltips by default. They contain the value of each item.                             |
| [Templates](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/templates)                  | By default, each Rating item is rendered with a star icon. You are able to customize the icon.                 |
| [Accessibility](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/accessibility/overview) | The Rating is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support. |

## Next Steps

* [Getting Start with the Rating](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/getting-started)

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

* [Rating in Razor Pages](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/rating/razor-page)

## See Also

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