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
HTML tags usually appear in pairs, such as
and
3. HTML elements
An HTML element contains the opening tag and End tag, as follows:
<p>这是一个段落</p>
4. Statement
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!