Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Online CSS Editor

<!DOCTYPE html>
<html>
    <head>
<title>Css Example</title>
<style>
    .style1{
        color:green;
        font-family:Times new roman;
    }
    .style2{
        color:red;
        font-family:monotype corsiva;
    }
    #mydiv{
        height:300px;
        width:100px;
        padding:100px;
        background-color:yellow;
    }
</style>
</head>
<body>
    <div id="mydiv">
    <h2 class="style1">Heading 1</h2>
    <p class="style1">This is a paragraphy for heading 1</p>
    
    <h2 class="style2">Heading 2</h2>
    <p calss="style 2">This is a paragraphy for heading 2</p>
    </div>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.