I have the following code:
<img src="images/img2.jpg" alt="" title="" />
Is this correct for Layout.cshtml
and partial views?
Should I instead specify the source using something like @URl
?
This will probably gonna break. The below one is the right way of doing it :
<img src="@Url.Content("~/images/img2.jpg")" alt="" title="" />