HTML Introduction

What is HTML?

HTML stands for Hyper Text Markup Language and is the standard markup language for creating web pages. It was first developed by Tim Berners-Lee in 1991 to structure and link documents on the early World Wide Web.

Basic Structure of an HTML Document

A basic HTML document starts with the !DOCTYPE html declaration, followed by the <html> root element, a <head> section for meta information, and a <body> section for visible content.

Getting Started

  • Text editor (e.g., Visual Studio Code, Sublime Text, Atom)
  • Modern web browser (e.g., Chrome, Firefox, Edge, Safari)

First HTML Document Example

Example:

<!DOCTYPE html>
<html>
<head>
  <title>My First HTML Page</title>
</head>
<body>
  <h1>Hello, world!</h1>
  <p>This is my first HTML document.</p>
</body>
</html>

Save this code in a file named index.html and open it in your browser to see the rendered page.