SET on html tag lang attribute asp.net-mvc

badung

New Member
How do I set (without doing horrible hacks) lang attribute on html tag in MVC\[code\]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"></html>\[/code\]In 3.5 this could be done by adding runat='server' to html tag and then setting values.
I could not found a proper way of doing this.
I need it to enable use of css:lang selectorhttp://www.w3schools.com/cssref/sel_lang.asp
EDIT:If you're using ASP.NET MVC, you can directly edit the tag in the _Layout view or whichever you're using as the master page.
 
Back
Top