O
Oli Filth
I'm writing a small website using HTML 4.01 Strict (as an experiment to see if
it's worth the effort of unlearning Transitional practices). As I understand it,
the purpose of Strict is to completely separate content (HTML) from presentation
(CSS), and to markup the HTML semantically rather than presentationally.
However, whilst all my pages will have the same header, navbar, background,
fonts, etc., the main content layout will vary quite considerably from page to
page. For instance, some pages will have a large left-floated image with
justified text on the right, others will have predominantly centred content,
whilst others may have left-aligned content with right padding (for example).
My question is, how to define the CSS? As each page's layout is fairly
different, should each page have its own, specific CSS file, with global styles
(like fonts and colours) defined in a global CSS file? Or should all the CSS be
packed into one file, with multiple id definitions (one for each page) one after
the other? Both methods seem like they could be hard to maintain. Is Strict HTML
even appropriate for sites where content layout varies considerably?
TIA,
Oli
it's worth the effort of unlearning Transitional practices). As I understand it,
the purpose of Strict is to completely separate content (HTML) from presentation
(CSS), and to markup the HTML semantically rather than presentationally.
However, whilst all my pages will have the same header, navbar, background,
fonts, etc., the main content layout will vary quite considerably from page to
page. For instance, some pages will have a large left-floated image with
justified text on the right, others will have predominantly centred content,
whilst others may have left-aligned content with right padding (for example).
My question is, how to define the CSS? As each page's layout is fairly
different, should each page have its own, specific CSS file, with global styles
(like fonts and colours) defined in a global CSS file? Or should all the CSS be
packed into one file, with multiple id definitions (one for each page) one after
the other? Both methods seem like they could be hard to maintain. Is Strict HTML
even appropriate for sites where content layout varies considerably?
TIA,
Oli