You are here: Home / Topics / In how many ways can a CSS be integrated as a web page?

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

Filed under: CSS Interview Questions on 2022-07-02 15:18:48

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>
About Author:
D
Dharmendra Sir     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.