In your master set the tag to runat=server and give it an id like this:
<html lang="en" runat="server" id="masterHead">
In your masterpage .cs add this to set the property:
public string SetPrefix
{
set { masterHead.Attributes.Add("prefix", value); }
}
Then from your content page you can set it like this:
var master = Master as SiteMaster;
if (master != null)
((SiteMaster)Master).SetPrefix = "ya: http://webmaster.yandex.ru/vocabularies/";
In the above SiteMaster is your MasterPage, you may have to change it to the actual name of your MasterPage.