CSS introduction

  • CSSS stands for cascading style sheet
  • CSS is use for separate the content of a web page from the presentation.
  • By CSS we can color text , style and size of fonts,the spacing between paragraph,background color,background image etc.
  • Type of Css

    There are three ways you can use to implement CSS: internal, external, and inline styles

    1. Inline CSS
    2. Internal CSS
    3. External Css
    4. inline CSS

      By inline CSS technique,we can apply CSS in a single element.The CSS code is written in the 'style' attribute of the HTML element that you want to apply that style to.

      for example.
      <h1 style="color: blue;margin-left:30px;" >this is inline Css><\h1 >

      External CSS

      External Css is use when we want to make change in multiple page. External CSS is a file that contains only CSS code and is saved with a ".css" file extension. <link> tag

      for example

      .CSS file

      body{ background-color:black; width: 100%; height: 100%; margin: 0; }

      HTML File

      <!DOCTYPE html>
      <title>Page Title</title>
      <link href="index.css" rel="stylesheet" >

      <h1>external Css</h1>
      <p>This is a paragraph.</p>


      Internal CSS

      This CSS style is an effective method of styling a single page.Iinternal CSS is add in the <head>section with style tag.

      for example

      <!DOCTYPE html>
      body {
      background-color: red;
      h1 {
      color: black;
      padding: 50px;
      <h1 > internal CSS </h1 >
      <p >This is our paragraph. </p >

Copyright © Wepathshala. All Rights Reserved

About us

Dear user, wepathshala is the that site
who provide best content.wepathshala
used simple language who is essay
for purposes of learning.My goal is
that my user can learn easily about
php,html,css and bootstrap who
is the base of web development.

Follow us