How to Specify CSS Class Name for the ActionLink in ASP.NET MVC?

Below is a sample soucrecode demonstrating how to specify the CSS class Name for the ActionLink helper method in ASP.NET MVC.

How to Specify CSS Class Name for the ActionLink in ASP.NET MVC?

@model MvcApplication1.Models.EmployeeVM

@{

if (@ViewContext.ViewData.ModelState.IsValid)

{

ViewBag.Title = "Index";

}

}

<h2>Abundant Code</h2>

@Html.ActionLink(“Abundantcode.com – Primary source for Programming samples”, “Home”, new { @class = “Style1” })