Curriculum
Course: HTML Complete Course: Build Your First W...
Login
Text lesson

What HTML is and how the web works

HTML stands for HyperText Markup Language. It is the language that gives a web page its structure. Every website you visit, from a small blog to a large online shop, is built on HTML.

Three languages, three jobs

  • HTML gives the content and structure.
  • CSS controls how it looks.
  • JavaScript adds behaviour.

What happens when you open a website

  1. You type an address into the browser.
  2. The browser asks a server for that page.
  3. The server sends back an HTML file.
  4. The browser reads the file and shows the page.

Tags and elements

HTML uses tags, written in angle brackets. Most come in pairs: an opening tag and a closing tag with a slash. Together with the content between them, they form an element.

<p>This is a paragraph.</p>

Try it: Open any website, right-click and choose View Page Source. Everything you see is HTML that the browser received.

Warning