title: How to make the h1 tags appear in one(same) line using jsp
body: <p>I have two text boxes one for first text and the other for second text. Each have a drop down
  box for choosing the size(so they can be of different or same size). Right now I am able to choose different
  sizes and it works fine. The trouble I am having is they are displayed in two different
  lines like:</p>
  
  <pre><code>       first text
         second text
  </code></pre>
  
  <p>but I want them to be displayed next to each other. For example</p>
  
  <pre><code>      first text second text
  </code></pre>
  
  <p>The code that I have right now is as follows:</p>
  
  <pre><code> &lt;c:choose&gt;
     &lt;c:when test="${! (empty (properties['first']) &amp;&amp; empty (properties['second']))}"&gt;
      &lt;c:choose&gt;
          &lt;c:when test="${properties['type'] == 'styled'}"&gt;
              &lt;h1 class="aaaa"&gt;
                  &lt;span&gt;first text&lt;/span&gt;
              &lt;/h1&gt;
          &lt;/c:when&gt;
          &lt;c:otherwise&gt;
              &lt;h2 class="bbb"&gt;
                  &lt;span class="putColor"&gt;first text&lt;/span&gt;
              &lt;/h2&gt;
          &lt;/c:otherwise&gt;
      &lt;/c:choose&gt;
      &lt;c:choose&gt;
          &lt;c:when test="${properties['type1'] == 'styled'}"&gt;
              &lt;h1 class="aaaa"&gt;
                  &lt;span class="putColor"&gt;second text&lt;/span&gt;
              &lt;/h1&gt;
          &lt;/c:when&gt;
          &lt;c:otherwise&gt;
              &lt;h2 class="bbb"&gt;
                  &lt;span class="putColor"&gt;second text&lt;/span&gt;
              &lt;/h2&gt;
          &lt;/c:otherwise&gt;
      &lt;/c:choose&gt;
  &lt;/c:when&gt;
  &lt;c:otherwise&gt;       
      &lt;div class="hhhh"&gt;
  
      &lt;/div&gt;      
  &lt;/c:otherwise&gt;
   &lt;/c:choose&gt;
  </code></pre>