title: Writing a <meta> tag using HTMLTextWriter in C# issue
body: <p>I'm trying to render a basic HTML webpage using <code>C#</code> and <code>HTMLTextWriter</code> to output to a <code>WebBrower</code> object, but am having issues rendering the <code>&lt;meta&gt;</code> tag in my <code>HTML</code> output.</p>
  
  <p><strong>What I am expecting to be output..</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
    &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;My Website&lt;/title&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;h1&gt;Hello World!&lt;/h1&gt;
    &lt;/body&gt;
  
  &lt;/html&gt; 
  </code></pre>
  
  <p><strong>What is currently being output..</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;/meta charset="UTF-8"&gt;&lt;title&gt;
        My Website
      &lt;/title&gt;
      &lt;/head&gt;&lt;body&gt;
      &lt;h1&gt;
        Hello World!
      &lt;/h1&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <blockquote>
    <p>Notice how the <code>&lt;meta&gt;</code> tag is being output as <code>&lt;meta charset="UTF-8"&gt;</code> &amp; <code>&lt;/meta charset="UTF-8"&gt;</code> instead of just <code>&lt;meta charset="UTF-8"&gt;</code>. </p>
    
    <p><strong>What can I do to correct this issue?</strong></p>
  </blockquote>
  
  <p><strong>Here is the code I am using..</strong></p>
  
  <pre><code>var sw = new StringWriter();
  using (var writer = new HtmlTextWriter(sw)) {
      writer.RenderBeginTag("!DOCTYPE html");
      writer.RenderBeginTag(HtmlTextWriterTag.Html);
          writer.RenderBeginTag(HtmlTextWriterTag.Head);
              writer.RenderBeginTag("meta charset=\"UTF-8\"");
              writer.RenderEndTag();
              writer.RenderBeginTag(HtmlTextWriterTag.Title);
                  writer.Write("SIT323 - My Website");
              writer.RenderEndTag();
          writer.RenderEndTag();
          writer.RenderBeginTag(HtmlTextWriterTag.Body);
              writer.RenderBeginTag(HtmlTextWriterTag.H1);
                  writer.Write("Hello World!");
              writer.RenderEndTag();
          writer.RenderEndTag();
      writer.RenderEndTag();
  };
  return sw.ToString();
  </code></pre>