Drupal 7 - Trying to get term reference node, from html.tpl
Ok, so you'll want to test for a node, then check for the field and then print it to your template. This should work for you:

&lt;?php

if(arg(0)=='node' &amp;&amp; is_numeric(arg(1))) {
        $node = node_load(arg(1));
        if(isset($node-&gt;field_test['und'][0]['value'])) {
            print $node-&gt;field_test['und'][0]['value'];
        }       
}


?>

That's code for Drupal 7