What is HTML?

Source: Internet
Author: User
Tags tag name

What is HTML?
HTML is a standard markup language that allows you to create Web pages in this language.

HTML is a hyper-text markup language
HTML uses some markup to describe the structure of the page
Elements in HTML (elements) are the basis for building a page
HTML tags (tags) represent page elements
A variety of different labels (such as head tags, table labels, picture labels) work together with each other, forming a colorful web world
The browser does not show the label, and the HTML page we see is the result of the label rendering.
A simple HTML instance
HTML instance
<! DOCTYPE html>
<title> Page Title </title>
<body>

<p> I am the paragraph </p>

</body>
Try

Instance parsing
<! DOCTYPE html> describes the document type of the current page as HTML5
The <title> tag describes the title of the current page, which is usually displayed in the browser's tab
<p> tags define the content of the article paragraph
HTML tags
An HTML tag is a block of elements wrapped up by a signature and an arrow brace, which can fill some content or nest other tags

< tag name > I am content </tag name >
In general, HTML tags always appear in pairs, such as <p></p>
The first label we call the start tag, the second tag we call the end tag
The end tag is written in the same way as the start tag, except that the tag name is preceded by a forward slash in the arrow brackets.
The relationship between browser and HTML
The main task of the browser is to read the HTML file and display the page.

Instead of displaying HTML tags, the browser determines how the page is rendered based on the tags provided by the HTML file.

HTML page structure
The general structure of the HTML page is as follows:

<title> title </title>

<body>

<p> article paragraph 1</p>
<p> article paragraph 2</p>

</body>

Note: Only the contents of the <body></body> tag will be displayed in the browser.

<! The role of the doctype> statement
<! Doctype> tells the browser the document type of the current page, and the browser correctly describes the page according to the declaration.

An HTML page can only appear once <! Doctype> declaration, and the declaration must be placed at the top of the page.

<! Doctype> is a common case, developers can write <!doctype>.

HTML version
The following table lists the version information for the HTM:

Version year
HTML1991
HTML 2.01995
HTML 3.21997
HTML 4.011999
XHTML2000
HTML52014


Original link:
Www.w3uu.com/intro/base/html-tutorial.html

What is HTML?

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.