Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

What is Inline CSS, Internal CSS, External CSS

What is Inline CSS, Internal CSS, External CSS 


here you can get the source code of this video







HTML part  (tutorial_1.html)

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="style.css">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- internal css -->
    <style>
        /* p{
            color: blue !important;
            background-color: coral !important;
        } */
    </style>
</head>
<body>
    <h1>Coding Discussion</h1>




    <!-- inline css -->
    <p style="color: red; background-color: aquamarine;">this is css tutorial number 1</p>
</body>
</html>

CSS part  (style.css)

 h1{                          
    colorchartreuse;
    background-colorcrimson;
    padding25px;
}
p{
    colorchartreuse !important;
    background-colorcrimson !important;
    padding25px;

}

Post a Comment

0 Comments