The second HTML experience

Source: Internet
Author: User
Tags basic html page

The basic HTML page begins with DOCTYPE, which declares the type of the document, and it cannot have any content before it (including line breaks and spaces), otherwise invalidates the document declaration, followed by the <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<HTML>
<HEAD>
<meta http-equiv= "Content-type" content= "text/html;charset=gb2312" >
<TITLE> title of the page </TITLE>
</HEAD>
<BODY>
The content of the Web page, many tags are used for this
</BODY>
</HTML>
   ! DOCTYPE Specifies the document type definition (DTD) that the HTML document adheres to, because HTML documents are standard, and HTTP is followed by a DTD page address. This is a standard statement that represents the Web site's requirements for the DTD. The entire document is between <HTML> and </HTML>. <HTML> declares this to be an HTML file that allows the browser to recognize and correctly process this HTML file. The file is divided into two parts, from <HEAD> to </HEAD> called the beginning,<body> to </BODY> called this article. Basically the two have the appropriate tags, the META tag is used to describe the attributes of an HTML page document, such as author, date and time, page description, keywords, page refresh, and so on. The purpose of the META tag above is to specify the character encoding used in the current document as gb2312, which is simplified Chinese characters. According to this line of code, the browser can recognize that the page should be displayed in Chinese characters. Similarly, if "gb2312" is replaced with "Big5", we are familiar with the Chinese traditional characters. <TITLE> can only appear at the beginning of the section. The initial section is used to store important information, and only the part of this article will be displayed. So most of the tags will be used in this section. <TITLE> is marked with the title of the document. will appear at the top of the browser and the name of someone else's Bookmark, so each page has a different and clear title is needed.

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.