- CONTENT LAYER . html files
- HTML gives the page structure and adds semantics. #html+ css:
- content+ PRESENTATIO .html file+.css file
- css enhance how the HTML content is presented (backgrounds, borders, box dimensions, colors, fonts)
- BEHAVIOR LAYER
- .html file+.css file+.js file
- adding interactivitely the website
- var today= new Date();
- var hourNow = today.getHours();
- var greeting;
greeting= 'Good evening!'; else if (hourNow > 12) { greeting = ' Good afternoon!'; else if (hourNow > 0) { greeting = 'Good morni ng!'; else { greeting = 'Welcome! ' ; }
- <script src="js/ add-content.js">
- NUMERIC DATA TYP
- string data type
- boolean data type