//Use the WithAttribute method: HTML.KTextBox("name").WithAttribute("placeholder", "username").ToHtmlString();