Applying CSS
There are three types of applying CSS to html. They are as follows...
1) Inline
2) Internal
3) External
In-line:
In-line styles are put straight into the HTML tags using the style attribute.
Ex: <p style="color: red">Blog</p>
Internal:
Embedded, or internal styles are used inside the head tags.
Ex: <style type="text/css">
a {
color: blue;
}
</style>
External:
External styles are used for the multiple-page website. Used inside the head tags
Ex:<link rel="stylesheet" type="text/css" href="style.css" />
1) Inline
2) Internal
3) External
In-line:
In-line styles are put straight into the HTML tags using the style attribute.
Ex: <p style="color: red">Blog</p>
Internal:
Embedded, or internal styles are used inside the head tags.
Ex: <style type="text/css">
a {
color: blue;
}
</style>
External:
External styles are used for the multiple-page website. Used inside the head tags
Ex:<link rel="stylesheet" type="text/css" href="style.css" />
1 Comments:
Thanks for your grateful informations, am working in Web Design Company in Bangalore
Post a Comment
Subscribe to Post Comments [Atom]
<< Home