Css:-embedded style

Embedded styles

 Embedded styles are also called internal styles.An internal style sheet may be used if one single page has a unique style.Internal styles are defined within the <style> element, inside the <head> section of an HTML page.




<!DOCTYPE html> 
<html> 
<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 
 <!--Embedded Styles are written inside the <style></style> tag and it is usually written between <head> tag--> 
 <style> 
  div { 
   width: 100px; 
   height: 100px; 
   background: green; 
  } 
 </style> 
</head> 
<body> 
 <div> 
  Test Div 
 </div> 
</body> 
</html>

Css:-embedded style Css:-embedded style Reviewed by Network security on May 23, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.