Including CSS in A document
CSS can be included in a document four ways -
1. Embedded a style sheet : directly put the style sheet between <head> and </head> tags.
<head>
<style type=”text/css”>
body{
font: 10px sans-serif;
}
</style>
</head>
2. Include a CSS in a document and link it to the HTML document.
<link rel=“stylesheet” type=“text/css” href=“example1.css”>
Here rel is relationship between the including and included documented, the included documented is stylesheet here.
type refers to the MIME type of the included document, For CSS this is always “text/css”. MIME types are standard way of classifying file types on the Internet. Web servers and browsers all have a list of MIME types, so that they can transfer files of the same type in the same way, irrespective of the operating system they are operating on.
3.) Import a style sheet
<style type=“text/css”>
@import url(example1.css);
</style>
4.)directly applying to an element in an HTML document
<body style=“font: 10px sans-serif;”>
Photo Graphic Design Software for Mac Graphic Design Software on Mac OS X like Corel Painter, Illustrator CS6, MyBrushes are those Best Graphic Design Software for Mac OS X.
ReplyDelete