Adding "~" to the href for a html link

Viewed 253

I have the following link inside my asp.net mvc razor view:-

<a class="brand" href="~/Home/Index/"> <img alt="test" src="~/Content/logo.png" /> </a>

But i am not sure what does the symbol ~ inside the src & href do ? as removing this symbol will still reference to the correct imag and the correct url ? can anyone advice please ?

Thanks

4 Answers
Related