Practicing and exploring
Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring this chapter’s topics with deeper research.
Exercise 15.1 – Test your knowledge
Answer the following questions:
- What is the advantage of declaring a strongly typed Razor view and how do you do it?
- How do you enable Tag Helpers in a view?
- What are the pros and cons of HTML Helper methods compared to Tag Helpers?
- How can a browser request a preferred language for localization?
- How do you localize text in a view?
- What is the prefix for attributes recognized by Tag Helpers?
- How can you pass a complex object as a query string parameter?
- How can you control how long the contents of the
<cache>
element are cached for? - What is the
<environment>
element used for? - How does cache busting with Tag Helpers work?