This chapter gives you a simple introduction to HTML, there is a certain reference value, the need for a friend can refer to, I hope you have some help.
First, what is HTML?
HTML language for describing Web pages
HTML refers to Hypertext Markup Language: Hyper Text Markup Language
HTML is not a programming language, but a markup language, markup language is a set of tag tags
HTML uses tag tags to describe web pages, HTML documents contain HTML tags and text content, and documents are called Web pages.
Second, HTML tags
HTML tag tags are often referred to as HTML tags (html tag)
HTML tags are keywords surrounded by angle brackets, such as HTML tags are usually paired, such as <p> and </p>
The first label in the pair is the start tag, and the second tag is the end tag. Start and end tags are also known as open tags and closed labels
Third, HTML elements
An HTML element contains a start tag and an end tag, as in the following example:
<p> This is a paragraph </p>
Iv. <! Doctype> statement
<! Doctype> is a declaration of the document type of the standard generic markup language, which is shorthand for document type, which helps to display the Web page correctly in the browser
DOCTYPE declarations are case-insensitive and are available in several ways:
<! DOCTYPE html><! DOCTYPE Html><!doctype html><! Doctype html>
General declarations
HTML5
<! DOCTYPE html>
Chinese code
In the HTML page of the head declaration character is UTF-8 can solve the problem of Chinese garbled in the browser
<! DOCTYPE html>