title: How to substitute text with an icon inside a button?
body: <p>I included the following dropdown Bootstrap button on my webpage:</p>
  
  <pre><code>&lt;!-- Example single danger button --&gt;
  &lt;div class="btn-group"&gt;
    &lt;button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
      Action
    &lt;/button&gt;
    &lt;div class="dropdown-menu"&gt;
      &lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;
      &lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;
      &lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;
      &lt;div class="dropdown-divider"&gt;&lt;/div&gt;
      &lt;a class="dropdown-item" href="#"&gt;Separated link&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to substitute the text <code>Action</code> with the following icon:</p>
  
  <pre><code>&lt;i class="fas fa-language"&gt;&lt;/i&gt;
  </code></pre>
  
  <p>I've been trying with the following code but it doesn't work:</p>
  
  <pre><code>&lt;div class="btn-group"&gt;
                  &lt;button id="translate"  type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
                      &lt;i class="fas fa-language"&gt;&lt;/i&gt;
                  &lt;/button&gt;
                  &lt;div class="dropdown-menu"&gt;
                      &lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;
                      &lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;
                      &lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;
                      &lt;div class="dropdown-divider"&gt;&lt;/div&gt;
                      &lt;a class="dropdown-item" href="#"&gt;Separated link&lt;/a&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>How might it substitute the text of a button with an icon?</p>
  
  <ul>
  <li>S O L V E D - - - - - -></li>
  </ul>
  
  <p>I added the following in the  of the HTML file, as recommended, and it solved the problem:</p>
  
  <pre><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.css" rel="stylesheet"/&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"&gt;&lt;/script&gt;
  </code></pre>