Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Help Needed with CSS File Format

Help with how to format a CSS file

9:55 am on Sep 18, 2002 (gmt 0)

New User

10+ Year Member

joined:Sept 17, 2002
votes: 0

I am controlling my site style through a CSS file linked to every page. My question is whether I should include the <style> tags at the beginning and end of the file? Does it even matter?
10:00 am on Sept 18, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
votes: 0

Welcome to WebMasterWorld, Duncan!

If you mean in the external CSS file (myfile.css), then no - you do not include the <style type="text/css"> tag. This is an html tag that tells the browser that what comes between <style> and </style> is css information.

The same applies to external JavaScript files (myscript.js), you do not included the <script type="text/javasrcipt">...</script> tags.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members