Untitled

 avatar
unknown
plain_text
10 months ago
940 B
3
Indexable
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        /* CSS untuk Mobile (Smartphone) */
        @media (max-width: 767px) {
            .text-color{
                color: blue;
            }
        }

        /* CSS untuk Tablet */
        @media (min-width: 768px) and (max-width: 1024px) {
            .text-color{
                color: red;
            }
        }

        /* CSS untuk Laptop */
        @media (min-width: 1025px) and (max-width: 1440px) {
            .text-color{
                color: yellow;
            }
        }

        /* CSS untuk Desktop/Monitor besar */
        @media (min-width: 1441px) {
            .text-color{
                color: orange;
            }
        }
    </style>
</head>

<body>

    <h1 class="text-color">Hello World</h1>


</body>

</html>
Editor is loading...
Leave a Comment