Fonts in CSS

 <!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CSS Fonts</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link
        href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+AT:ital,wght@0,100..400;1,100..400&display=swap"
        rel="stylesheet">
    <style>
        p {
            font-family: "Playfair Display", "serif", "Franklin Gothic Medium", "Arial Narrow", "Arial", "sans-serif";
            font-size: 33px;
            line-height: 2.3em;
        }

        span {
            font-weight: bold;
            font-style: italic;
        }
    </style>
</head>

<body>
    <!--There are two types of Fonts : "Web Safe Fonts" and "Web Fonts"-->
    <!--"Web Safe Fonts" are already installed in our Operating System-->
    <!--"Web Fonts" are not already installed in our Operating System. We have to import from Web-->
    <h4>CSS Fonts</h4>
    <p>Lets play with <span>fonts</span>. It is very exciting</p>
</body>

</html>



Comments