title: Why border was not showing for dynamic table
body: <p>Creating a web App using Google Apps script.</p>
  
  <p>I was retrieving data from the spreadsheet and trying to display in a table format.</p>
  
  <p>Everything is working fine except Border for table..,</p>
  
  <p>Below is the code .</p>
  
  <pre><code> &lt;html&gt;
  
    &lt;body&gt;
  
  &lt;table border="1"&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
  
     window.onload = function()
     {
         google.script.run.withSuccessHandler(showData).getpres();
      }
  
  
   function showData(data)
   {
    var html = "";
    for (var i=0; i&lt;data.length; i++) 
    { 
      if(data[i][0] &lt;= 2)
      {
  
  
    document.write("&lt;tr&gt;&lt;td&gt;Number " + i + " is:&lt;/td&gt;");
    document.write("&lt;td&gt;" + data[i][3] + "&lt;/td&gt;&lt;/tr&gt;");
  
      }
    }
  
  }
      &lt;/script&gt;
      &lt;/table&gt;
  
     &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>