💻 Computer Science · Topic 45 of 97

Introduction to HTML

HTML is the markup language that defines the structure and content of web pages using tags.

▶ Interact

Play with the controls to see the idea in action.

Loading animation…

📘 Learn

HTML is the markup language that defines the structure and content of web pages using tags.

  • Tags such as h1 and p
  • Links use the a tag
  • Images use the img tag

🧠 Quick quiz

Three questions. Score 2 or more to complete the topic.

What is Introduction to HTML?

Within Computer Science, which covers algorithms, programming, data, networks, hardware and safe, responsible use of technology, this topic explains Introduction to HTML. Computing topics explain how software, hardware and data work, with diagrams and models that show each step in order.

Check that you can explain Introduction to HTML in your own words and give one example from everyday life. If you can do that, you have understood the core idea.

Understanding Introduction to HTML helps you design, test and explain programs, websites and systems, from small projects to exam questions.

Introduction to HTML in detail

HTML (HyperText Markup Language) is the standard language for structuring web pages. It uses tags in angle brackets, usually in pairs (<p>…</p>), to mark up content as headings (<h1>–<h6>), paragraphs, links (<a href="…">), images (<img src="…">), lists and tables.

A page has a <head>, with the title and metadata, and a <body>, with the visible content. Attributes give extra information to tags. HTML describes structure and meaning, not appearance (which is CSS) or behaviour (JavaScript). Semantic tags like <header>, <nav> and <footer> improve accessibility and search results. Browsers read HTML to display pages.

How the interactive helps you understand Introduction to HTML

Click a step, or use the Previous and Next buttons, to move through the sequence one stage at a time. Auto-play moves on for you.

Before you change anything, predict the result. Then change one value at a time and check whether your prediction was right. This is a quick way to build a correct mental model of Introduction to HTML.

Real-life uses and examples

Common mistakes to avoid

Frequently asked questions about Introduction to HTML

What is Introduction to HTML?

HTML is the markup language that defines the structure and content of web pages using tags.

What are the most important points about Introduction to HTML?

The main points are: Tags such as h1 and p; Links use the a tag; Images use the img tag.

Why is Introduction to HTML useful?

Understanding Introduction to HTML helps you design, test and explain programs, websites and systems, from small projects to exam questions.

How can I practise Introduction to HTML?

Open the interactive at the top of this page and change the controls one at a time. Predict the result before each change, then take the three-question quiz. A score of two or more marks the topic as complete on this device.

Which topics are related to Introduction to HTML?

Related topics in Computer Science include Web Browsers and Web Servers, Network Topologies, Packet Switching.

← PreviousIntroduction to PythonNext →Introduction to CSS

Keep exploring Computer Science