HTML Documentation

Introduction to HTML

Introduction to HTML

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It describes the structure of a web page semantically and originally included cues for the appearance of the document.

HTML Basics

HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML tags label pieces of content such as "heading", "paragraph", "table", and so on.

A small example

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>This is a heading</h1>
    <p>This is a paragraph.</p>
  </body>
</html>

Explanation of the example

The example above is a simple HTML page, which consists of three parts: the doctype, the <html> element, and the <head> and <body> elements. The <head> element contains the <title> element, which specifies a title for the document. The <body> element contains two <h1> elements and one <p> element.