What is the difference between inline, embedded and external style sheets?

Answer

Inline: Inline Style Sheet is used to style only a small piece of code.

Syntax:

          <htmltag style="cssproperty1:value; cssproperty2:value;">

           </htmltag>           

Embedded: Embedded style sheets are put between the <head>...</head> tags.

Syntax:

          <style>    
          body {   background-color: primary;    } 
          h1 {   color: red;        margin-left: 80px;    }   
         </style>         

 

External: This is used to apply the style to all the pages within your website by changing just one style sheet.

Syntax:

       <head>    
       <link rel="stylesheet" type="text/css" href="mystyle.css">   
       </head>    

All sass Questions

Ask your interview questions on sass

Write Your comment or Questions if you want the answers on sass from sass Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---