HTML Tutorials

Master HTML with our comprehensive, step-by-step tutorials

HTML Tutorial

1 Introduction to HTML
2 HTML Document Structure
3 HTML Elements
4 HTML Attributes
5 Text Formatting

Introduction to HTML

Lesson 1 of 15 5 min read

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It describes the structure of a web page using markup elements.

What is HTML?

  • HTML stands for HyperText Markup Language
  • HTML is the standard markup language for creating Web pages
  • HTML describes the structure of a Web page
  • HTML consists of a series of elements

Your First HTML Document

HTML
<!DOCTYPE html>
<html>
<head>
    <title>My First Web Page</title>
</head>
<body>
    <h1>Hello World!</h1>
    <p>This is my first web page.</p>
</body>
</html>

Output:

Hello World!

This is my first web page.

HTML Elements Explained

Let's break down the HTML document above:

  • <!DOCTYPE html> - Defines the document type
  • <html> - Root element of the HTML page
  • <head> - Contains meta information about the document
  • <title> - Specifies the title shown in browser tab
  • <body> - Contains the visible page content
  • <h1> - Defines a large heading
  • <p> - Defines a paragraph