Css font size and font famil

technical talkiess
0

 <!DOCTYPE html>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Css font family and font size</title>
    <!-- include google font in the web page  -->
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap" rel="stylesheet">
    <style>
        p{
            /* , seprated if font is not avaiable the system get next form */
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
        }
        span{
            font-family: 'Open Sans', sans-serif;
            font-style: italic;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <p>Lorem ipsum dolor sit <span>Fonts</span> amet consectetur adipisicing elit. Expedita, quis.</p>
</body>
</html>
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)