javascript
Brief description  about Online courses   join in Online courses
View Mohammed Gouse Gadad 's Profile

Different types of css

Hi Sir!!! I have one doubt.Till know i am writing
<style type="text/css">
.
.
.
</style>
I want know about what it means?.And is there any different types of CSS?.If there which are those?
Asked by Mohammed Gouse Gadad | Mar 29, 2011 |  Reply now
Replies (4)
View mohammed gouse gadad 's Profile
Thanks....
Apr 5, 2011
View teacher siliconindia 's Profile
Hi,

Like that you cant write, you are defining there your linking css file in text format, there no alternative, css file as a image you cant give link right. and there you can give time
"text/javascript"
"text/css" this type.

Regards





Apr 5, 2011
View mohammed gouse gadad 's Profile
Thanks...But i want to know about different style type.In above example we use text/css. Like that is there any other types? for example image/css.Is it ok.
Mar 31, 2011
View teacher siliconindia 's Profile
Hi

Inline styles
Inline styles are styles that are written directly in the tag on the document. Inline styles affect only the tag they are applied to.
<a href="" style="text-decoration: none;">

Embedded styles
embedded styles are styles that are embedded in the head of the document. Embedded styles affect only the tags on the page they are embedded in.
<style type="text/css">
p { color: #00f; }
</style>
External styles
External styles are styles that are written in a separate document and then attached to various Web documents. External style sheets can affect any document they are attached to.
<link rel="stylesheet" type="text/css" href="styles.css" />

<style type="text/css">
Means you are defining what you are going to link externally, javascript, css ect

Regards
Mar 31, 2011