Introduction to CSS and types of CSS
|
CSS stands for Cascading style sheet. CSS are usually used in webpages to format the pages and to make them more impressive. CSS includes formatting webpages by specifying fonts,colors,borders,etc. There are 3 types CSS :- 1. Inline CSS :- When style is specified in the html tag itself , then this css is known as inline CSS. ex. : <div style=”font-size:11px;”>……..</div> 2. Embedded CSS :- When style is defined in the <head>…..</head> part of the page, then that css is embedded css. ex. : <head> <style type=”text/css”> div { color: #000000; } </style> </head> 3. External Style Sheet :- When a separate style sheet document is created and attached in webpage using tag then, it is the external style sheet. ex. : consider that a document named ’style.css’ is available the to attach it or to use the styles use link tag in head section. <head> <link rel=”stylesheet” xhref=”style.css” type=”text/css”> </head> |
Powered by WHMCompleteSolution
