免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2010年4月8日 星期四

CSS style placement in html

[Q] Where to place CSS style within an Html page ?

[Q] Can we put <style> ... </style > within <body> rather than <head> ?
Yes, we can. Read more on
--> http://3hitek.blogspot.com/2010/12/css-embed-in-bloggerblogspot.html

[try] css style has to be defined before html's < body > ???
i.e. within <head> </head>

by

  • <link>
  • <style> ... </style > (embed)
  • @import "urstyles.css";

//=== otherwise --> css inline
<h2 style="color:red; background:black;">This is a heading style with red text and black background </h2>

can we put <style> ... </style > within <body> rather than <head> ?

The answer seems "Yes, we can". Please see my new blog post http://3hitek.blogspot.com/2010/12/css-embed-in-bloggerblogspot.html

沒有留言:

張貼留言