Tuesday, May 2, 2017

CSS

💢 CSS

 Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language.




😇 EXAMPLE:   

      



















 ðŸ’¥

 body {
    background-color: lightblue;
}

h1 {
    color: white;
    text-align: center;
}

p {
    font-family: verdana;
    font-size: 20px;
}







😇 CSS write Three ways...........

  • External style sheet
              😅 Each page must include a reference to the external style sheet file inside the <link> element. The <link> element goes inside the <head> section:

      <head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
      </head>
  • Internal style sheet
        😅 Internal styles are defined within the <style> element, inside the <head> section of an HTML page:

         <head>
       <style>
body {
    background-color: linen;
}

h1 {
    color: maroon;
    margin-left: 40px;
}
</style>
</head>



  • In line style
           😅 An in line style may be used to apply a unique style for a single element.

<h1 style="color:blue;margin-left:30px;">This is a heading</h1>


 ðŸ’­ HTML+CSS

     


No comments:

Post a Comment