Delphinidin

Get any informations you need in depth explanation

CSS is very flexible regarding how you call it in a document. You can include CSS in a document in four ways:

- CSS can be included in a document by using embedded style sheets, which are included between <style> and </style> tags directly in an HTML document. These tags must appear between the <head> and </head> tags.

<style type=”text/css”>body { font: 12px sans-serif;} </ style >

- CSS can be included in its own document and linked to an HTML document by using the <link> element. Note that as the link element can be used for more than just referencing CSS files, such as linking to RSS feeds for the current site, it is important to include rel=”stylesheet” so that the browser knows what we want it to do.

<link rel=”stylesheet” type=”text/css” href=”mycss.css”>

- CSS can be imported from within either an embedded or linked style sheet by using an

@import rule.
<style type=”text/css”>
@import url(mycss.css);
</ style >

- CSS declarations can be applied directly to an element in an HTML document by using inline styles with the style attribute.

<body style=”font: 12px sans-serif;”>

0 comments:

Post a Comment

Site Info