Live Demo: Using the CSS @import Rule

PHOTO EMBED

Tue Nov 28 2023 23:26:34 GMT+0000 (Coordinated Universal Time)

Saved by @dayana #undefined

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-">

    <title>Using the CSS @import Rule</title>

    <style type="text/css">

        @import url("/examples/css/layout.css");
8
        @import url("/examples/css/color.css");

        body {

            color:blue;

            font-size:px;

        }

    </style>
14
</head>

<body>

    <div>

        <h1>Importing External Style Sheet</h1>

        <p>The layout styles of these HTML element is defined in 'layout.css' and colors in 'color.css'.</p>

    </div>

</body>

</html>
content_copyCOPY

https://www.tutorialrepublic.com/codelab.php?topic