User Tools

Site Tools


century:separation_of_concerns_example

Example

XHTML: semantics

<a href="foo.html"
  class="foolinks"
  onclick="fooFunc()">Click me!</a>

CSS: presentation

.foolinks {
  color: green;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

Javascript: behavior

function fooFunc() {
 popupWin = window.open(this.getAttribute('href'), '_foowindow');
}
century/separation_of_concerns_example.txt · Last modified: 2012/07/23 15:16 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki