title: I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box
body: <p>i have created colored squre box using code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.box {
    height: 20px;
    width: 20px;
    margin-bottom: 15px;
    border: 1px solid black;
  }
  
  .red {
    background-color: red;
  }
  
  .green {
    background-color: green;
  }
  
  .blue {
    background-color: blue;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='box red'&gt;&lt;/div&gt;= Super Fast Trains&lt;br&gt;
  &lt;div class='box green'&gt;&lt;/div&gt;= Mail/Express Trains&lt;br&gt;
  &lt;div class='box blue'&gt;&lt;/div&gt;= Local/ Passenger Trains</code></pre>
  </div>
  </div>
  </p>
  
  <p>But I want the text beside the boxes which is not showing in this current code.I also tried 'float:left' attribute but that making the second &amp; third lines not showing in same margin. 
  See the code at <a href="https://jsfiddle.net/14to4gej/" rel="noreferrer">https://jsfiddle.net/14to4gej/</a>
  <br>So please help me with correct modification in my code to get text after boxes an in same margin.
  Thanks in advance.</p>