'fontawesome cannot be used

I have quick question of using fontawesome icon in HTML. I've tried the solutions to import the kit and link the all.css

 <script
      src="https://kit.fontawesome.com/"my kit id".js"
      crossorigin="anonymous"
    ></script>
...
 <i class="fa-solid fa-xmark"></i>
  <script src="css/all.css"></script>
...
 <i class="fa-solid fa-xmark"></i>

but it still not worked.I don't understand how to solve this problem



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source