You are here: Home / Topics / How can you integrate CSS on a web page?

How can you integrate CSS on a web page?

Filed under: CSS Interview Questions on 2022-07-02 15:22:01

CSS can be integrated in three ways:

  • Inline: term is used when the CSS code have attribute of HTML elements

<p style="colour:skyblue;"> My Sky!</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.