HTML Foundations·Getting started

Introduction to HTML

What HTML actually is, and how a browser turns your text into a page.

Beginner 8 min read Lesson 1 of 480 Challenge included
What you will be able to do
  • Explain the role of HTML
  • Write your first element
  • Open a page in a browser

HTML stands for HyperText Markup Language. It is not a programming language: it is a way of describing the meaning and structure of content. A heading is a heading, a paragraph is a paragraph, and a button is a button — HTML says which is which.

Tags, elements and content

You write HTML using tags. Most elements open with a tag like <p> and close with a matching </p>. Everything between them is the content.

index.htmlHTML
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>My first page</title>
  </head>
  <body>
    <h1>Hello, world.</h1>
    <p>I am learning HTML on EduByte.</p>
  </body>
</html>
Tag
The markup itself, such as <p> or </p>.
Element
The opening tag, content and closing tag together.
Attribute
Extra information inside a tag, such as lang="en".
Your turn

Your first paragraph

Easy

Inside the body, add an <h1> with your name and a <p> that describes what you want to build.

HTML · starter
<body>
  <!-- add your heading and paragraph here -->
</body>
Check your understanding before moving on.
Knowledge checkQuestion 1

Which element holds the content that is visible on the page?

Select an answer to continue
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Next: Document structure
Lesson 1 of 480 · 0% of course