Lesson 1.4: Basics of HTML, CSS, JS & Their Role
๐น Introduction
A website is built with three core technologies: HTML, CSS, and JavaScript.
Each plays a unique role:
-
HTML provides the structure.
-
CSS adds styling and design.
-
JavaScript makes the page interactive.
๐น 1. HTML (HyperText Markup Language) โ Structure
-
Acts as the skeleton of a webpage.
-
Uses tags (like
<h1>,<p>,<img>) to define content. -
Example:
-
Without HTML, a browser would have no idea what content to display.
๐น 2. CSS (Cascading Style Sheets) โ Design
-
Adds style, layout, and colors to HTML elements.
-
Controls fonts, margins, padding, backgrounds, animations, and responsiveness.
-
Example:
-
Without CSS, websites look plain and boring.
๐น 3. JavaScript โ Interactivity
-
Adds logic and behavior to a webpage.
-
Can respond to user actions like clicks, form submissions, or key presses.
-
Example:
-
Without JavaScript, websites are static and non-interactive.
๐น How They Work Together
Think of a human body as an example:
-
HTML = Skeleton (structure)
-
CSS = Skin & Clothes (style)
-
JavaScript = Muscles & Brain (movement and logic)
Together, they form a complete, functional website.
๐ Quick Recap
-
HTML builds the structure of webpages.
-
CSS makes them look attractive.
-
JavaScript makes them interactive.
-
All three combined are the foundation of Frontend Web Development.
