HTML
On the html page, what is the use of the following line of code?
In a page reconstruction process, the first line of the Static Page has such a piece of code, followed by a large blank area. When the blank area is deleted, this line of code is accidentally deleted, then ....
It turns out that the normal page is messy and the font style is gone. The key is to take a look at the web browser. The layou
By default, the interpretation criteria for FF and IE are different, that is, if a Web page does not declare DOCTYPE, it interprets the following HTML with the default DOCTYPE. Under the same standard, different browser models have differences in interpretation, if the declaration criteria are different, do not need me to say, you can do it yourself. Learn Web st
By default, the FF and IE interpretation standards are different. That is to say, if a webpage does not declare DOCTYPE, it will explain the following HTML with the default DOCTYPE. Under the same standard, different browser interpretation models are different. By default, FF and IE interpretation standards are different. That is to say, if a webpage does not dec
Because it is not an HTML tag, it is just a browser command that tells the browser the version of the tag used to compile the page, so it does not need to appear in pairs when we open the source code of a regular website, the source code must startSome later directly add> while others have long text, such
Of course, the mainstream web page source code, such as E-dimensional technology source code uses HTML5 format, directly.Because it is not an
One, HTML doctype function
DOCTYPE is a shorthand for document type, which is used in web design to illustrate the version of XHTML or HTML that you use.
To build compliant XHTML Web pages, DOCTYPE declarations are an essential part of the key; unless your XHTML determines a
and saved by HTML, which causes the HTML page to be garbled.Summary: Garbled characters are generated because the character encoding of the browser and the HTML page declaration of the character encoding method and HTML saved encoding inconsistent.In HTML, the color of the
HTML
By default, the FF and IE interpretation standards are different. That is to say, if a webpage does not declare DOCTYPE, it will explain the following HTML with the default DOCTYPE. Under the same standard, different browser interpretation models are different. By default, FF and IE interpretation standards are d
In HTML 4.01, HTML5 is not based on SGML, so you do not need to reference a DTD.There is only one HTML 5There are three kinds of HTML 4.01 Strictthis DTDs contain all HTML elements and attributes, but do not include appearances or obsolete elements such as font . Frameset is not allowed.
XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">XHTML1.0 document strictly defined type, the document defined by this type can only use the tags and elements defined in the HTML, cannot contain tags not recommended by the list (for example: Font, b) (this type is used in the dream), the frame can not be used!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">The
By default, the interpretation criteria for FF and IE are not the same, that is, if a webpage does not declare doctype, it interprets the following HTML as the default DOCTYPE. In the same standard, different browser interpretation models are different, if the declaration of standards, do not need me to say, you can do it yourself. Learn about Web standards, brow
By default, the interpretation criteria for FF and IE are not the same, that is, if a webpage does not declare doctype, it interprets the following HTML as the default DOCTYPE. In the same standard, different browser interpretation models are different, if the declaration of standards, do not need me to say, you can do it yourself. Learn about Web standards, brow
DOCTYPE is an abbreviation for document type that describes what version of XHTML or HTML it is. must appear in front of the the DOCTYPE statement is an essential part of creating a page that meets the standards of the Web. Lack of style issues caused by HTML DOCTYPEWhen Web pages are developed using XHTML standards,
Transferred from:http://i.wanz.im/2010/05/28/why_doctype_html/Whether you're just touching the front end, or you're already "proficient" in web front-end development, you should know that you need to define the document type when you write HTML, and you know that if you do not have it, the browser will use the odd mode when rendering the page, and you know that each browser has different rendering for each element in weird mode. So you'll write a
If you wowould like to generate the DOCTYPE specification in the html output when using xslt transformation, you can not write the code as following:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Xmlns: xsl = "http://www.w3.org/1999/XSL/Transform">
It is because we can not write the DOCTYPE element in the xslt f
In the HTML declaration DOCTYPE general will have the following several:Yes, there are HTML and XHTML, as well as transitional and strict. As the name implies, XHTML means that the document is written in XML format, while HTML means that the document is written in HTML forma
follows:When you open a DW, you usually have this predefined code first, look at the first line"HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD">
The problem has been looking for a long time, and I don't know where it is. Later found to be the first sentence of DW generated code"http://www.w3.org/TR/html4/loose.dtd" >Make this mouse event not run. , it is stated here that the following mouse events must follow the rules of this DTD document.Some definitions in the No event are not followed, so this mouse
it is not an HTML tag and is not sensitive to capitalization, but rather instructs the Web browser about which HTML version the page uses to write the instructions. and the declaration must be the first line in the HTML document, before the No If there is no document type declaration, most browsers (including IE and Firefox) will be converted to a promiscuous mod
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 in HTML that DOCTYPE generally has the following types:
Yes, there are
DOCTYPE is a shorthand for document type, which is an essential key component of the DOCTYPE declaration to create a page that conforms to the standard.2017-05-20label definition and usage instructions
declaring the document's parsing type (document.compatmode), avoiding the browser's bizarre pattern;1 2
In HTML 4.01,
HTML5 is not based on SGML and
Excerpted from http://www.west263.com/info/html/wangyezhizuo/css/20080225/42390.htmlWhen we make a page, we always see a bunch of announcements in its source dock, like the most commonIf we remove the code, we will find that the page may have a noticeable change, because it causes some styles to behave differently.The code we call the DOCTYPE statement. DOCTYPE i
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.