Thursday 22 February 2018

How to Set the favicon in MVC.

In this article, We will discuss about How to Set the favicon in MVC.

First Of all, Create an MVC Project and goto Layout Page.

Goto <head></head> section and there we need to write the following code which is given below,

<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />

where "favicon.ico" is our favicon.


Not only in Layout Page but also we can set the favicon for invidual page and  there we need to add the above code and which will set favicon for that individual page.

0 comments:

Post a Comment