Blog post Intro to CSS

The inline css online affects a single parent or document inside the html file. The Internal css affects off then elements inside of the style type tab. The external css is a separate style sheet containing the css styles. ID is more specific than and the class is more specific than element. Below is the inline css then the internal css and finally the external css.

<p style= "color: blue;" ></p style>
    <head>
        <style type = text/css>
          body { background-color: blue;}
          p{ color: yellow;}
        </style>  
    </head>
 <link rel="stylesheet" href="recipe.css">

Leave a comment

Your email address will not be published. Required fields are marked *

css.php