title: HTML to create repeating header + detail rows for orders/details
body: <p>I'm not too familiar with HTML so I'm reaching out to the HTML wizards for help. My goal is to create a table that shows Order Header information on one line with Order detail information on rows below that. Then that would repeat for every order. Here's what I have so far. I'm asking for a nudge in the right direction to get the Order # to repeat for each new order.</p>
  
  <p>This is within a piece of software that uses the command {BEGIN*REPEAT} to repeat rows of data.</p>
  
  <p><a href="https://i.stack.imgur.com/MPbyR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MPbyR.jpg" alt="enter image description here"></a></p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>{BEGIN*HTML}
  
  &lt;head&gt;
    &lt;style&gt;
      table,
      td,
      th {
        border: 1px solid green;
        font-family: Arial, Helvetica, sans- serif;
      }
      td {
        padding: 1px 5px 1px 5px;
      }
      th {
        background-color: purple;
        color: white;
        padding: 1px 5px 1px 5px;
      }
      text {
        font-family: Arial, Helvetica, sans-serif;
      }
      p {
        font-family: Arial, Helvetica, sans-serif;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;!--Used to add image
  &lt;table style="border:0px"&gt;
              &lt;tr style="border:0px"&gt;
              &lt;td style="border:0px"&gt;&lt;p&gt;&lt;img src="" style="position:relative;      left:-20px; width:475px;"&lt;/td&gt;
          &lt;/tr&gt;
  &lt;table&gt;
  
  Used to right justify numeric fields: style="text-align:right;"
  --&gt;
  
  &lt;p&gt;Below is a list of orders created for your customers.&lt;/p&gt;
  
  &lt;p&gt;&lt;b&gt;Order Details&lt;/b&gt;
  &lt;/p&gt;
  
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Ord.#&lt;/th&gt;
        &lt;th&gt;Date&lt;/th&gt;
        &lt;th&gt;Cust.&lt;/th&gt;
        &lt;th&gt;Ship-to&lt;/th&gt;
        &lt;th&gt;City&lt;/th&gt;
        &lt;th&gt;ST&lt;/th&gt;
        &lt;th&gt;ExpectedShip&lt;/th&gt;
        &lt;th&gt;Item&lt;/th&gt;
        &lt;th&gt;Qty&lt;/th&gt;
        &lt;th&gt;UnitPrice&lt;/th&gt;
        &lt;th&gt;Location&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody&gt;
  
      &lt;tr&gt;
        &lt;th&gt;{ORDNUMBER}&lt;/th&gt;
      &lt;/tr&gt;
  
      {BEGIN*REPEAT}
  
  
      &lt;tr&gt;
        &lt;td&gt;{ORDNUMBER}&lt;/td&gt;
        &lt;td&gt;{OrdDateYYYYMMDD}&lt;/td&gt;
        &lt;td&gt;{NAMECUST}&lt;/td&gt;
        &lt;td&gt;{SHPNAME}&lt;/td&gt;
        &lt;td&gt;{SHPCITY}&lt;/td&gt;
        &lt;td&gt;{SHPSTATE}&lt;/td&gt;
        &lt;td&gt;{EXPDATE}&lt;/td&gt;
        &lt;td&gt;{ITEM}&lt;/td&gt;
        &lt;td&gt;{ORIGQTY}&lt;/td&gt;
        &lt;td&gt;{UNITPRICE}&lt;/td&gt;
        &lt;td&gt;{LOCATION}&lt;/td&gt;
      &lt;/tr&gt;
  
      {END*REPEAT}
    &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;p&gt;&lt;/p&gt;
  &lt;p&gt;&lt;/p&gt;
  {END*HTML} 
  </code></pre>