HTML Introduction
HTML Example
<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<title>Runoob Tutorial(runoob.com)
title
head
<
body
<
h1My first heading
h1
<
p
My first paragraph.
p
body
html
Try it »
Example Parsing

- Declared as an HTML5 document
- The element is the root element of an HTML page
- The element contains meta-information about the document, such as defines the page's character encoding as utf-8。
-
element describes the document's title - The element contains the visible page content
- The element defines a large heading
- The element defines a paragraph
**Note:** Press F12 on your keyboard to open debug mode in the browser and see the constituent tags.

What is HTML?
HTML is a language used to describe web pages.
- HTML stands for HyperText Markup Language: HyperText Markup Language
- HTML is not a programming language, but amarkuplanguage
- A markup language is a set ofmarkup tags (markup tag)
- HTML uses markup tags todescriptionweb page
- An HTML document contains HTML** tagsandtext**content
- An HTML document is also called a ** web page**
HTML tags
HTML markup tags are usually called HTML tags.
- HTML tags areangle bracketsKeywords enclosed by, for example
- HTML tags are usuallyappear in pairs, for example and
- The first tag in a tag pair is thestart tag, the second tag isend tag
- Start and end tags are also calledopening tagandclosing tag
content
HTML element
"HTML tag" and "HTML element" usually describe the same thing.
Strictly speaking, however, an HTML element consists of a start tag and an end tag, as in the following example:
HTML element:
This is a paragraph.
Web Browser
Web browsers (such as Google Chrome, Internet Explorer, Firefox, Safari) are used to read HTML files and display them as web pages.
Browsers do not display HTML tags directly, but use them to decide how to present the content of an HTML page to the user:

HTML Page Structure
The following is a visual structure of an HTML page:
This is a heading
This is a paragraph.
This is another paragraph.
![]() |
Only the region (the white part) is displayed in the browser. |
|---|
HTML Versions
Since the early days of the Web, many HTML versions have appeared:
| Version | Release date |
|---|---|
| HTML | 1991 |
| HTML+ | 1993 |
| HTML 2.0 | 1995 |
| HTML 3.2 | 1997 |
| HTML 4.01 | 1999 |
| XHTML 1.0 | 2000 |
| HTML5 | 2012 |
| XHTML5 | 2013 |
Declaration
The declaration helps the browser display the web page correctly.There are many different files on the Web. If the HTML version is declared correctly, the browser will display the web page content correctly.
The doctype declaration is case-insensitive, so the following are all acceptable:
Universal declaration
HTML5
HTML 4.01
XHTML 1.0
View the full list of declaration types DOCTYPE Reference Manual。
Chinese Encoding
Currently, in most browsers, outputting Chinese directly may result in garbled characters. In this case, we need to declare the character set as UTF-8 or GBK in the header.
HTML Example
<!DOCTYPE html><html>
<head>
<meta charset="UTF-8">
<title>Page title
title
head
<
body
<
h1My first heading
h1
<
p
My first paragraph.
p
body
html
Try it »
