If not
Doctype,
HtmlAnd
XHTML,
Strict
DTDAnd
TransitionalDTD,
Quirks
ModeAnd
StandardBefore reading this article, we strongly recommend that you read the DOCTYPE, HTML, XHTML, Quirks Mode, and Standard Mode
WebpageWhy are the results of this
[Abstract]
DTD is the English document type definition, which means "document class definition" in Chinese ". DTD has two tasks: on the one hand, it helps you write legalCodeOn the other hand, it allows the browser to display the code
DTD is the English Document Type Definition, which means "Document class Definition" in Chinese ". DTD has two tasks: on the one hand, it helps you write legal code, and on the other hand, it allows the browser to display the code correctly. Maybe
The CSS definition is invalid under loose. DTD and xhtml1-transitional.dtd:
Body {SCROLLBAR-FACE-COLOR: # f2f2f2;SCROLLBAR-HIGHLIGHT-COLOR: # ffffff;SCROLLBAR-SHADOW-COLOR: #999999;SCROLLBAR-3DLIGHT-COLOR: #999999;SCROLLBAR-ARROW-COLOR:
Why declaration. Use doctype to declareInstance:
We often see code like this:
document title document content ......
Note:At the top of the list, we can see a statement about "DOCTYPE" (document type), which tells the browser which
We declare DOCTYPE in HTML in the following types: & lt ;! DOCTYPEhtmlPUBLIC & quot;-W3CDTDXHTML1.0TransitionalEN & quot; www. w3.orgTRxhtml1DTDxhtml1-transitional. dtd & quot; & gt; & lt ;! DOCTYPEhtmlPUBLIC & quot;-W3CDTDXHTML1.0Stric we declare
Declare the DOCTYPE that suit your needs.
Looking at the original code, you can see that the first line is:
3C//DTD XHTML 1.0 transitional//en ""Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
Open some of the standard sites, such as the
I encountered a very strange problem during interface connection today. I was puzzled and asked my colleagues and experts. They both said they had never met this problem, I don't know how to solve this problem on Baidu either. Now I will give a
DOCTYPE is the abbreviation of Document Type. element is used to declare the Document Type definition (DTD) of a page ). This element declaration is located at the beginning of the document, before the tag. By confirming the page's DTD, you can
By default, Firefox browsers and IE browsers are not the same interpretation standards. If a page does not declare DOCTYPE, it interprets the following HTML or XHTML with the default DOCTYPE. Under the same standard, different browser models have
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.