AJAX Forums

CSS: What is better? internal css in the <head> or external css?

This is a discussion on CSS: What is better? internal css in the <head> or external css? within the XHTML and CSS forums, part of the Beginners AJAX category; I've had better luck creating with css in the , I would rather have an external, and I don't understand why one works and the other doesn't(but ...


Go Back   AJAX Forums > Beginners AJAX > XHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 03-27-2007, 06:28 PM   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 Stick is on a distinguished road
CSS: What is better? internal css in the <head> or external css?

I've had better luck creating with css in the , I would rather have an external, and I don't understand why one works and the other doesn't(but I am a newbie at this. Still learning html and css). So which is better, external or internal css. What are the drawbacks of both?so i have a .html page with the css internally. I want to make it external, so I copy and paste to a new notepad file, save .css add the link in the html to the css, but yet its all messed up.What am I missing?
__________________
Stick is offline   Reply With Quote
Old 03-28-2007, 11:14 AM   #2 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 BountyJack is on a distinguished road
External CSS is better because the file can be stored seperately and globally changed. You only need to add a line to reference the file to include the CSS in your Web pages.When using CSS it is preferable to keep the CSS separate from your HTML. Placing CSS in a separate file allows the web designer to completely differentiate between content(HTML) and design(CSS). External CSS is a file that contains only CSS code and is saved with a ".css" file extension. This CSS file is then referenced in your HTML using the instead of . See the link below for a tutorial.































www.tizag.com
__________________
BountyJack is offline   Reply With Quote
Old 03-28-2007, 04:47 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 csanon is on a distinguished road
Aside from separation of markup and style (keep CSS separate from (X)HTML markup), there is another benefit to keeping CSS files separate.Caching. Since different markup uses only one (or a few static) CSS file, browsers can cache the CSS file and that means less bandwidth used up. That reduces costs all around.
__________________
csanon is offline   Reply With Quote
Old 03-28-2007, 10:50 PM   #4 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 Joseph C is on a distinguished road
I read that external css is safer and nobody can still steal it from you. Also you can change an external css file better than an internal one.
__________________
Joseph C is offline   Reply With Quote
Old 03-29-2007, 07:15 PM   #5 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 1
Rep Power: 0 Samer Kamel is on a distinguished road
in practice i always found external CSS much better .. simply coz u can use one CSS file across ur website .. and if u decide to change a formatting of headers for example .. u can edit one file and it will be reflected on all ur website .. which keeps ur website workin flawlessly and still all looking the same
__________________
Samer Kamel is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
AJAX Jobs : New Web Site with Internal Search Engine, Drupal by th3f1nalbss admin AJAX Freelance Jobs 0 08-28-2008 10:08 PM
hi i have c drive on my pc i also have an external hardrive J I installed mozilla jimjo16 Web 2.0 3 06-12-2007 02:30 PM
Xhtml: Adding internal links to a framed page.? Cory H XHTML and CSS 0 06-03-2007 05:36 AM
Html code in head to webforward without frames? Alandriel XHTML and CSS 1 05-03-2007 11:19 PM
Is it possible to control a table's cellspacing attribute using an external CSS file? Ryan M XHTML and CSS 2 04-02-2007 03:46 PM


All times are GMT -4. The time now is 08:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com