In how many ways can a CSS be integrated as a web page?

devquora
devquora

Posted On: Feb 22, 2018

 

CSS can be integrated in three ways:

  • Inline: term is used when the CSS code have attribute of HTML elements
    <p style="colour:skyblue;"> hello world!</p>
  • External: separate CSS file is created in the workspace and later linking them in every web page that is created
    <head>
    
      <link rel="text/css"
    
    href="your_CSS_file_location"/>
    
    </head>
    
  • Internal: the head element of the web page has internal CSS implemented in it
    <head>
    
      <style>
    
        p{
    
           color:lime;
    
           background-color:black;
    
          }
    
       </style>
    
    </head>
    

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    CSS Interview Questions

    What is CSS?

    Cascading style sheets or CSS is a web designing language simple for HTML elements. The application is commonly known a..

    CSS Interview Questions

    What are the advantages of CSS?

    There are a number of advantages of CSS, It gives lots of flexibility for setting the properties of the element Easy ma..

    CSS Interview Questions

    What benefits and demerits do External Style Sheets have?

    The advantages of External Style sheets are: The style of several documents can be controlled from site by using them. ..