HTML (HyperText Markup Language)
HTML is used to create the structure of a webpage.
Think of HTML as the skeleton of a website.
Example:
Headings
Paragraphs
Images
Links
It tells the browser what content to show.
CSS (Cascading Style Sheets)
CSS is used to design and style the webpage.
Think of CSS as the beauty or design of a website.
Example:
Colors
Fonts
Layout
Spacing
It tells the browser how the content should look.
Simple Analogy:
HTML = Structure (body)
CSS = Style (clothes & makeup)
Example Code:
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<style>
h1 {
color: blue;
}
</style>
</head>
<body>
<h1>Hello World</h1>
<p>This is my website</p>
</body>
</html>
Here:
HTML creates the heading & paragraph
CSS makes the heading blue

Leave a Reply
You must be logged in to post a comment.