<> The Main Components of Websites <>

HTML & CSS & JS

  1. CONTENT LAYER ( .html files )
  2. PRESENTATION LAYER ( .css files )
  3. BEHAVIOR LAYER ( js.files )



PROGRESSIVE ENHANCEMENT

  1. HTML ONLY
    • Starting with the HTML layer allows you to focus on the most important thing about your site: its content.



  1. HTML + CSS
    • Adding the CSS rules in a separate file keeps rules regarding how the page looks away from the content itself.



  1. HTML + CSS + JS
    • The JavaScript is added last and enhances the usability of the page or the experience ofinteracting with the site.



CREATING A BASIC JAVASCRIPT




LINKING TO A JAVASCRIPT FILE FROM AN HTML PAGE




External JS




GitHubURL :)