title: How to properly use svg icons with bootstrap
body: <p>I'm using bootstrap. Below the navbar I want to have a div like it is in the image, with the current path, and for the icons, I want to use bootstrap svg icons:</p>
  
  <p><img src="https://i.stack.imgur.com/yaS1K.png" alt="enter image description here"></p>
  
  <p>My doubt is how to properly use svg icons in the html and also how to style them. For example, the bootstrap svg for house icon is:</p>
  
  <pre><code>&lt;svg class="bi bi-house-door-fill" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"&gt;
    &lt;path d="M6.5 10.995V14.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .146-.354l6-6a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 .146.354v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5V11c0-.25-.25-.5-.5-.5H7c-.25 0-.5.25-.5.495z"/&gt;
    &lt;path fill-rule="evenodd" d="M13 2.5V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>And for the right arrow is this:</p>
  
  <pre><code>&lt;svg class="bi bi-chevron-compact-right" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"&gt;
    &lt;path fill-rule="evenodd" d="M6.776 1.553a.5.5 0 0 1 .671.223l3 6a.5.5 0 0 1 0 .448l-3 6a.5.5 0 1 1-.894-.448L9.44 8 6.553 2.224a.5.5 0 0 1 .223-.671z"/&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>It's correct to use svg bootstrap icons like this in the html or there is another approach that is more correct? And also to style the svg is correct like in the example below using the class like ".svg"?</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm"&gt;
      &lt;div class="container"&gt;
          &lt;a class="navbar-brand" href=""&gt;
              Logo
          &lt;/a&gt;
          &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                  aria-controls="navbarSupportedContent" aria-expanded="false"
                  aria-label="{{ __('Toggle navigation') }}"&gt;
              &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
          &lt;/button&gt;
  
          &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
  
              &lt;ul class="navbar-nav ml-auto"&gt;
                  &lt;!-- Authentication Links --&gt;
  
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  
  &lt;div class="bg-light" style=""&gt;
      &lt;div class="container"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-12" style=""&gt;
                  &lt;ol class="breadcrumb mb-0" style=""&gt;
                      &lt;li class="breadcrumb-item"&gt;
                          &lt;a href="index.html"&gt;
                              &lt;svg class="bi bi-house-door-fill svg" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"&gt;
                                  &lt;path d="M6.5 10.995V14.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .146-.354l6-6a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 .146.354v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5V11c0-.25-.25-.5-.5-.5H7c-.25 0-.5.25-.5.495z"/&gt;
                                  &lt;path fill-rule="evenodd" d="M13 2.5V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/&gt;
                              &lt;/svg&gt;
                          &lt;/a&gt;
                      &lt;/li&gt;
                      &lt;svg class="bi bi-chevron-compact-right svg" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"&gt;
                          &lt;path fill-rule="evenodd" d="M6.776 1.553a.5.5 0 0 1 .671.223l3 6a.5.5 0 0 1 0 .448l-3 6a.5.5 0 1 1-.894-.448L9.44 8 6.553 2.224a.5.5 0 0 1 .223-.671z"/&gt;
                      &lt;/svg&gt;
                      &lt;li class="breadcrumb-item"&gt;  &lt;a href="#"&gt;Pages&lt;/a&gt;&lt;/li&gt;
                      &lt;svg class="bi bi-chevron-compact-right svg" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"&gt;
                          &lt;path fill-rule="evenodd" d="M6.776 1.553a.5.5 0 0 1 .671.223l3 6a.5.5 0 0 1 0 .448l-3 6a.5.5 0 1 1-.894-.448L9.44 8 6.553 2.224a.5.5 0 0 1 .223-.671z"/&gt;
                      &lt;/svg&gt;
                      &lt;li class="breadcrumb-item active"&gt;  &lt;span&gt;Subpage&lt;/span&gt;&lt;/li&gt;
                  &lt;/ol&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.breadcrumb{
      background: transparent;
  }
  
  .svg{
    color:gray;
  }
  
  .svg:hover{
    color:green;
    cursor:pointer;
  }
  </code></pre>