d-inline-block align-top

html bootstrap5 Sample

navbar-brandに画像:navbar-brand


    <nav class="navbar navbar-dark bg-success">
      <a class="navbar-brand" href="#">
        <img src="https://bttb.jp/assets/img/logo-small-2.png" width="30" height="30" class="d-inline-block align-top"
          alt="">
        Bootstrap
      </a>
    </nav>