title: How to echo meta title and meta tags using DOMDocument and DOMXPath
body: <p>Using this function:</p>
  
  <pre><code>function get_tags($adres)
  {
      $dom = new domDocument();
      libxml_use_internal_errors(true);
      if (!$dom-&gt;loadHTML($adres)) {
          echo "Error";
      } else echo "Load ok";
      $html = new DOMXPath($dom);
     $html-&gt;query('//title');
  }
  </code></pre>
  
  <p>I try to get and echo title and keywords, description, robots meta tags using XPath, but don't know how and how must look query for meta tags.</p>
  
  <p>Thanks</p>