Home > Web Front-end > HTML Tutorial > A brief introduction to HTML

A brief introduction to HTML

青灯夜游
Release: 2018-09-11 16:27:10
Original
2169 people have browsed it

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


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>
Copy after login

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>
Copy after login

General declaration

HTML5

<!DOCTYPE html>
Copy after login

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

Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template