Help Me/Question How To Use Inline,embedded And External Css

Doominic anderson

Yellow Belt
Css is used with html to describe appearance and formatting of web document written in html.
Css has a list of rules which consist of one or more selectors and a declaration block.

My question is how Inline.Embedded and External Css are used with html,if you can give example it helps a lot.
 

RADHESHYAM GUPTA

Yellow Belt
Inline Styles :- Inline style used for a unique style for a single element.
Example of Inline style:-
<h1 style="margin-top: 60px; color: white;">IHeading of your Webpage</h1>
An internal style sheet used for if one single page has a unique style. In other word internal is known as embedded.
Internal styles are defined as <style> tags, Inside the <head> section of an HTML page.
Example For embedded:
<head>
<style>
body { background-color: White;}
h1 { color: Red; margin-left: 20px;}
</style>
</head>
External Style Sheet :-It is used as an external style sheet, By changing one file.
Each page must include a external style sheet with .css extension.
Example of External style sheet:-
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
 
Top