Content and
Layout
Lon Barfield
Separating content and layout
Bit of web history
Content and layout on the web
Why separation is a good thing
But first...
The Large Hadron Collider
Million GBytes per second
The Higgs Boson - July 2012
Yes it’s Comic Sans!
The God particle the Devil’s typeface
bancomicsans.com
It would be nice to publish data without layout
issues
Tim Berners-Lee CERN - 1989
10,000 scientists from over 100 countries
It would be nice to publish data without layout
issues
World Wide Web - “Vague but exciting”
info.cern.ch/hypertext/WWW/TheProject.html
Tim Berners-Lee CERN - 1989
Just content, no layout
This chunk of text is a heading, etc.
Headings, Text, Title, Quote, Abstract
20 Elements
Early web had no ‘design’
Designers v content purists
‘Tricks’ subverting the HTML tags
spaces, blank images, H2 for titles
Compromise - the centre tag
HTML became content and layout
Nice HTML timeline
more layout oriented tags
still mixing content and layout
broadcast.rackspace.com/blog/HTMLtimeline
Style sheets - CSS
This is the content…
<H1>Blah blah</H1>
And this is how it should look...
H1 {font-weight: bold;
text-transform: uppercase;}
Advantages
Accessibility - screen readers for the blind won’t
start by reading the navigation bars
Responsive design - information can adapt for
small screens, printing etc.
Advantages cont.
Better search indexing - Is the term in the title,
the heading?
Semantic web - what do things actually mean
Hands on - Zen Garden
csszengarden.com
en.wikipedia.org/wiki/CSS_Zen_Garden
download HTML and CSS sample using the
links, tweak and screen grab it
Taking a peek at the CSS
The page using the CSS
www.csszengarden.com/?cssfile=/210/210.css
Just the CSS
www.csszengarden.com/210/210.css

separating content and layout, HTML CSS and some web history

  • 1.
  • 2.
    Separating content andlayout Bit of web history Content and layout on the web Why separation is a good thing But first...
  • 3.
  • 4.
  • 5.
    The Higgs Boson- July 2012
  • 6.
  • 7.
    The God particlethe Devil’s typeface bancomicsans.com It would be nice to publish data without layout issues
  • 8.
    Tim Berners-Lee CERN- 1989 10,000 scientists from over 100 countries It would be nice to publish data without layout issues World Wide Web - “Vague but exciting” info.cern.ch/hypertext/WWW/TheProject.html
  • 9.
  • 10.
    Just content, nolayout This chunk of text is a heading, etc. Headings, Text, Title, Quote, Abstract 20 Elements
  • 11.
    Early web hadno ‘design’
  • 12.
    Designers v contentpurists ‘Tricks’ subverting the HTML tags spaces, blank images, H2 for titles Compromise - the centre tag HTML became content and layout
  • 13.
    Nice HTML timeline morelayout oriented tags still mixing content and layout broadcast.rackspace.com/blog/HTMLtimeline
  • 14.
    Style sheets -CSS This is the content… <H1>Blah blah</H1> And this is how it should look... H1 {font-weight: bold; text-transform: uppercase;}
  • 15.
    Advantages Accessibility - screenreaders for the blind won’t start by reading the navigation bars Responsive design - information can adapt for small screens, printing etc.
  • 16.
    Advantages cont. Better searchindexing - Is the term in the title, the heading? Semantic web - what do things actually mean
  • 17.
    Hands on -Zen Garden csszengarden.com en.wikipedia.org/wiki/CSS_Zen_Garden download HTML and CSS sample using the links, tweak and screen grab it
  • 18.
    Taking a peekat the CSS The page using the CSS www.csszengarden.com/?cssfile=/210/210.css Just the CSS www.csszengarden.com/210/210.css