WD 17. Fonts&RelatedProperties

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Fonts</title>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap">
    <style>
        p{
            font-family:'Ubuntu', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-size: 33px; /* 1/96th of an inch*/
            line-height: 1.3em; /* In CSS, "em" can also be used as a relative unit for other properties, like spacing and sizing, where 1em is equal to the current element's font size. */
            font-weight: bold;
        }
    </style>
</head>
<body>
    <h4>CSS Fonts</h4>
    <p>Lets play with fonts. It is very exciting</p>
    <p>Lets play with fonts. It is very exciting</p>
    <p>Lets play with fonts. It is very exciting</p>
</body>
</html>

#Output:


Comments

Popular posts from this blog

JAVA Lab Programs

HANGMAN GAME

WD 22. StylingLinks&Buttons