HTML and CSS for Beginners › Module 1: Getting Started › Lesson 1.1

What Are HTML and CSS?

Free previewLesson 1.1 · about 20 minutes · no experience needed

Your pages are drawn by your own browser

Get the full course

10 modules of hands-on HTML and CSS — type the code and see your own web page appear, no installs. Lessons 1.1 and 1.2 are free; the rest of the course is Rs. 300 + 18% GST.

Enroll Now — Rs. 354.00

By the end of this lesson you will be able to

  • explain what a web page really is, and what a web browser does with it
  • say what HTML does and what CSS does, and how the two work together
  • explain why these skills are still worth having when AI tools can write web pages
  • change a real web page on this website and see the result straight away

What is a web page, really?

Every web page you have ever visited, from a newspaper to a railway timetable, arrives on your phone or computer as a plain text file. There are no pictures of the page inside it, no finished layout. There is only text: the words of the page, plus short instructions saying what each part is and how it should look.

Your web browser (Chrome, Safari, Firefox, Edge and so on) reads those instructions and draws the page from them: it sets the headings in large type, lines up the columns, places the pictures and colours the buttons. That is why the same page can look right on a small phone and on a wide screen: the browser draws it afresh to fit each one.

Those instructions are written in two languages, and learning them is what this course is about.

HTML: what each part of the page is

HTML stands for HyperText Markup Language. “Markup” means marking up a piece of text to say what each part of it is: this is the main heading, this is a paragraph, this is a list, this is a link to another page, this is a picture. (“Hypertext” is an old word for text containing links.)

The marks are called tags. A tag is a word inside angle brackets, such as <h1> for the main heading or <p> for a paragraph. Here is a small piece of HTML, with the page the browser draws from it underneath. The page appears by itself, a moment after the box comes into view.

Notice that the tags themselves are not shown on the page. The browser reads them, and uses them to decide what each part is: the first line became a large, bold heading, and each <p> became a separate paragraph with a little space around it. Lesson 1.2 explains exactly how these lines are written.

CSS: how the page looks

CSS stands for Cascading Style Sheets. HTML says what each part of a page is; CSS says how it should look: its colours, its fonts and sizes, the space around it, and where it sits on the screen.

Here is the same page with a few lines of CSS added at the bottom, inside <style>. Compare the two pages.

The words and the structure have not changed at all, but the page now has a colour scheme, a different typeface and a line under the heading. You do not need to understand the CSS yet; Module 4 starts it properly. For now, try one change: in the line that starts with h1, replace #2c3e8f with darkred. The page redraws itself a moment after you stop typing.

A useful way to think of it

Think of a printed book. The author decides what is a chapter title, what is a paragraph and what is a list: that is HTML. The book designer then decides the typeface, the margins and the colours: that is CSS. Keeping the two apart means one designer's CSS can restyle a thousand pages at once, without touching their words.

There is a third language of the web, JavaScript, which makes pages do things, such as responding to a click. It is taught in VICTORIA INSTITUTIONS' separate JavaScript course. This course stays with HTML and CSS, which every web page is built from and which come first.

Why learn this when AI can write web pages?

It is a fair question. Today you can describe a page to an AI tool and receive the HTML and CSS for it in seconds. But what the AI gives you is exactly the kind of code this course teaches, and someone still has to:

HTML and CSS also appear far beyond ordinary websites: in email newsletters, e-books, online shop listings, blogs and the content editors of most organisations. Reading them comfortably is a basic skill of working with anything online, and it takes only a few weeks to learn.

How this course works

This is a text course with no videos, but it is not a course you only read. Every lesson has boxes of real HTML and CSS, like the two above. You read them, change them, and watch the page change.

Your pages are drawn in a safe practice area

Each page you write is shown inside a sealed-off frame. Nothing you type can change this lesson page, see your login, or reach the internet, and nothing needs installing. So experiment freely: you cannot break anything.

What you will build

Across the course you will learn to write the text, links, pictures, tables and forms of a page (Modules 1 to 3); to style it with colours, fonts and spacing (Modules 4 and 5); to lay it out in columns and grids that adapt to phones, tablets and computers (Modules 6 to 8); and to add finishing touches that make a page pleasant and usable for everyone (Module 9). In the final project you put it all together as a small website for a tea house in Calicut.

Each lesson assumes only what earlier lessons taught, so if a word is unfamiliar, it will have been explained already or will be explained where it first matters.

Quick check

Three questions to confirm the main ideas before you move on.

1. What does a web browser receive when it loads a web page?

2. Which sentence describes the difference between HTML and CSS?

3. An AI tool has written a web page for you. Why is it still useful to know HTML and CSS?

Summary

  • A web page arrives as text. The web browser reads its instructions and draws the page to fit your screen.
  • HTML (HyperText Markup Language) marks up what each part of a page is, using tags such as <h1> and <p>.
  • CSS (Cascading Style Sheets) says how those parts look: colours, fonts, spacing and layout.
  • Knowing HTML and CSS lets you check, fix and change web pages, including the ones AI tools write.
  • Every box on this course draws a real page in a safe practice area, and points out common mistakes as you type.

Found a mistake on this page, or something unclear? Report a problem and mention “HTML Lesson 1.1”.