KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
It's possible to add a HTML title attribute to an input tag like so: @Html.TextBoxFor(model => model.Name, new { title = "Customer name" }) Is there a similar helper for static text? With @Html.DisplayFor(model => model.Name) I can render the text from a model property. How can I add HTML attributes so that I get a span tag rendered like this: <span title="Customer name">ABC</span>
Tags (comma-separated)
Save Edits
Cancel