HTML Simple Introduction

Source: Internet
Author: User

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.


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

HTML elements

An HTML element contains a start tag and an end tag, as in the following example:

< P > This is a paragraph </p>

<! 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



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><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <Metaname= "Viewport"content= "Width=device-width, initial-scale=1.0">    <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge">    <title>Document</title></Head><Body>    <P>This is a paragraph</P></Body></HTML>

HTML Simple Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.