| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
External Style Sheet for CSS?
What is the best practice for CSS? I see on W3Schools.com they always have the CSS right in the HTML. But using other things, I see to link an external style sheet. In your opinion..what is the best, safest, cleanest way to do it. Thanks! Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
|
|
#11 (permalink) | |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
|
Quote:
Assuming they both start at the same point in the markup, embedded css loads no quicker than external css. The main speed difference kicks in on subsequent pages which use the same external stylesheet. Whereas embedded css will need to be read in on every new page which uses it, external stylesheets are cached by the browser, so will not be re-read by the browser, reducing load-time on all subsequent pages. |
|
|
![]() |