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?
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.
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.
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