← HTML & CSS learning pathHTML & CSS · Module 1 of 10
How a web page is built
HTML gives structure, CSS gives style, the browser draws the page.
📖 Key ideas
- HTML (HyperText Markup Language) marks up content with tags like <h1> and <p>.
- CSS (Cascading Style Sheets) sets colours, fonts and layout.
- The browser reads HTML and CSS and paints the page.
- Files: index.html for content, style.css for styles.
- A page skeleton: <!DOCTYPE html>, <html>, <head>, <body>.
💡 Real-life example: HTML is the skeleton and organs of a body; CSS is the clothes and hairstyle.
HTMLStructure and meaning of content
CSSLook and layout of content
TagMarker like <p> around content
<body>Holds everything visible on the page