I am trying to add a line of script inside the <head> of every page, however I dont want to go through every page and copy and paste this one line. Is there a way to do this, perhaps with CSS? It is the script for google+ and the other social bookmarks. I suppose I could just add the script to the body, but I read its better to have scripts inside the head. I tried to find it through other sources but came up dry. As always, Thanks in advance for your help.
That's not necessarily true. Depending on what the script is will depend where it should go inside your markup. If its a stylesheet then of course it should go in the head, when it comes to JavaScript, it's more beneficial to include it just before the end of the body (to increase loading times). You cannot add scripts using CSS as its only used for styling a document. Depending on your website structure again will depend on the best usage... If you are using a CMS like wordpress, adding the script as an external script to the header would of course allow that script to be used on every page. If you are using a static website then using a php include/require is the best method. If you are running on a host that doesn't support php, than adding the script as an external script before the end of the body is your best bet.
Great info there. So I should put it at the end of every page before the end of the body. I can do that with a PHP include. Thanks for your help.