Types of CSS
CSS in All Classes
Now, Here we
define how can we use css syntax in Inline, Inernal and External CSS.
External
style Sheet
In External
Style sheet you can change the look of an entire website by changing just one
file.
An External
style sheet can be written in any text editor. This external file must be saved
as .css extension. This external CSS define through link in Head section of
HTML. Let suppose external css name with style.css.
<link
rel="stylesheet" type="text/css"
href="style.css">
How style.css
looks:-
body
{
background-color:red;
font-size:36px;
}
Internal
style Sheet
An Internal
style sheet may be used if one single page has a unique style. Internal style
sheet defines with in <style></style> and <style> tag defines
in <head> section.
Ex:-
body
{
background-color:red;
font-size:36px;
}
Inline
style Sheet
An Inline
style may be used to apply a unique style for a single element.
Ex:-
<h1
style="font-size:36px; color:red;">
Comments
Post a Comment