HTML&CSS Basic Learning Note 4-defining document types

Source: Internet
Author: User

Defining document types for HTML

There are many different documents in the Web world. The browser can display the document correctly only if you understand the type of document.

HTML also has a number of different versions, only the exact HTML version used in the page is fully understood, and the browser can display the HTML page exactly. This is <!. The use of doctype>.

<! The doctype> declaration is not an HTML tag, it is a directive that instructs the Web browser to write which HTML version of the page to use. is a document type declaration of a standard generic markup language that is intended to tell the standard generic subscript language parser What document type definitions should be used to parse the document.

<! The doctype> declaration must precede the
<! The doctype> declaration is not case sensitive and has no end tag.

DOCTYPE declaration for HTML 5: <! DOCTYPE html>.

Sample code content:

<! DOCTYPE html>
<meta charset= "UTF-8" >
<title> Add a document description </title>
<body>
<p> Add a document description to the page </p>
</body>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/85/66/wKioL1eio86hjmd2AACBaJrYllo151.png-wh_500x0-wm_3 -wmp_4-s_2755616557.png "title=" 111.png "width=" "height=" 424 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px ; height:424px; "alt=" Wkiol1eio86hjmd2aacbajryllo151.png-wh_50 "/>

Original address: http://www.mayacoder.com/lesson/lesson?lesson_id=27&knowledge_id=5

More learning content, just in the code bud NET!


HTML&CSS Basic Learning Note 4-defining document types

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.