HTML Simple Introduction

Source: Internet
Author: User
Tags html tags
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>
Related Article

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: info-contact@alibabacloud.com 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.