Quote:
Originally Posted by blaqpig
Is there a standard that CSS should be in an external sheet and not in the head like it was previously? Does it have an advantage?
There are 3 methods of locating the CSS:
[1] inline: when a unique style is applied to a single element.
[2] internal: when a single web page has a unique style from the rest of the site.
[3] external: when the styles will be applied to many pages.
Your page uses both inline [1] CSS styling (in the body of the document) and internal [2] CSS styling in the head of the document. You have done nothing intrinsically wrong (other than using the 90s practice of using a table when a table is not needed for the content you presented).
My page uses only internal [2] CSS styling (all styles in the head of the document). No tabular data in the content; consequently no table is used.
I advocated (suggested, if you will) moving all styles to an external [3] style sheet. My perhaps erroneous assumption is you are going on to bigger and better things in the sense of a site containing many pages rather than the one simple page you presented. Thus, among other advantages (such as total separation of style from content), enabling you to quickly and easily change the look of your entire web site by changing one CSS file.
You have three choices-- it is your call (all 3 assume you ditch the the uneccessary table):
a/ Use what you already have: inline [1] styling and internal [2] styling (weakest option IMO).
b/ Use what I did: internal styling [2] (a better option than a/ IMO).
c/ Use only: external styling [3] (best learning/best practice option IMO).
@AutumnDay
Goggle-- subject line: what is tabular data?
Keep in mind a table should be used within a table-less CSS layout. But only for any tabular data in the content. The OP has no tabular data. No tabular data-- no table.