Home >Web Front-end >HTML Tutorial >A brief introduction to HTML
This chapter gives you a brief introduction to HTML, which has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
1. What is HTML?
HTML language is used to describe web pages
HTML refers to Hyper Text Markup Language: Hyper Text Markup Language
HTML is not a programming language, but a markup language. A markup language is a set of markup tags
HTML uses markup tags to describe web pages. HTML documents contain HTML tags and text content. Documents are also called web pages
2. HTML tags
HTML tags are often called HTML tags
HTML tags are keywords surrounded by angle brackets, such as 100db36a723c770d327fc0aef2ce13b1
HTML tags usually appear in pairs, such as e388a4556c0f65e1904146cc1a846bee and 94b3e26ee717c64999d7867364b1b4a3
The first tag in a tag pair is the start tag, and the second tag is the end tag. The opening and closing tags are also called open tags and closing tags
3. HTML elements
An HTML element contains the opening tag and End tag, as follows:
<p>这是一个段落</p>
4. 1a309583e26acea4f04ca31122d8c535 Statement
1a309583e26acea4f04ca31122d8c535 is a standard universal tag The declaration of the document type of the language, which is the abbreviation of document type (document type), this declaration helps to correctly display the web page in the browser
The doctype declaration is not case-sensitive, in the following ways All are ok:
<!DOCTYPE html> <!DOCTYPE HTML> <!doctype html> <!Doctype Html>
General declaration
HTML5
<!DOCTYPE html>
Chinese encoding
It is ok to declare the characters as UTF-8 in the header of the HTML page Solve the problem of Chinese garbled characters in the browser
<!DOCTYPE html>Document This is a paragraph
The above is the detailed content of A brief introduction to HTML. For more information, please follow other related articles on the PHP Chinese website!