Методы управления элементами HTML с помощью примеров кода

Приведенный вами пример кода содержит элемент HTML с именем класса и ссылкой CDN. Вот несколько методов, которые можно использовать с примерами кода, чтобы справиться с этой ситуацией:

Метод 1. Использование JavaScript/jQuery для управления DOM

<!DOCTYPE html>
<html>
<head>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
    <i class="fa-light fa-circle-check"></i>
    <script>
        $(document).ready(function() {
            // Find the element with the specified class name
            var element = $(".fa-light.fa-circle-check");

            // Manipulate the element or perform any other actions
            // For example, change the color of the element
            element.css("color", "red");
        });
    </script>
</body>
</html>

Метод 2. Использование стандартного JavaScript для управления DOM

<!DOCTYPE html>
<html>
<head>
    <script>
        document.addEventListener("DOMContentLoaded", function() {
            // Find the element with the specified class name
            var element = document.querySelector(".fa-light.fa-circle-check");

            // Manipulate the element or perform any other actions
            // For example, change the color of the element
            element.style.color = "red";
        });
    </script>
</head>
<body>
    <i class="fa-light fa-circle-check"></i>
</body>
</html>

Метод 3. Использование CSS для стилизации элемента

<!DOCTYPE html>
<html>
<head>
    <style>
        .fa-light.fa-circle-check {
            color: red;
        }
    </style>
</head>
<body>
    <i class="fa-light fa-circle-check"></i>
</body>
</html>