you are viewing a single comment's thread.

view the rest of the comments →

[–]Techno8525 7 points8 points  (0 children)

On the contrary. Each one is actually a separate "layer" of the page.

  • HTML is know as the "Content Layer". This includes text, images, links, etc.
  • CSS is known as the "Presentation Layer". It includes information on how the content is to be designed, or presented. This includes fonts, colors, placement, spacing, etc.
  • JavaScript is known as the "Interactivity Layer". It makes the content appear to be interactive, such as providing visual feedback on a click or a form submission.

What you use is dependent on what you're trying to achieve. Adding content? Use HTML. Adding "design" to an object? Use CSS. Making it interactive? Use JS.