<!DOCTYPE> Statement ： It is not HTML Tags and case insensitive , It's instruction web Browser about which page to use HTML Version of the instructions for writing . and The statement must be HTML The first line of the document , be located <html> Before the label .
No, <!DOCTYPE> The consequences of the statement ： If there is no document type declaration , Most browsers ( contain IE And fox ) Will switch to a hybrid mode , In this mode , There will be inconsistencies in the same style between browsers . And after adding the declaration , The browser knows that you want to use a more stringent standard mode .
The simplest HTML5 file ：
<title>HTML page </title>
<div> The simplest HTML5 file </div>
stay HTML 4.01 in ,<!DOCTYPE> Declaration reference DTD, because HTML 4.01 be based on SGML.DTD It defines the rules of markup language , So the browser can render the content correctly .
HTML 4.01 Strict： The DTD Contains all the HTML Elements and attributes , But it doesn't include showy and abandoned elements （ such as font）. Framesets are not allowed （Framesets）.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Transitionan： The DTD Contains all the HTML Elements and attributes , Including display and discard elements （ such as font）. Framesets are not allowed （Framesets）.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 Frameset： The DTD Equate to HTML 4.01 Transitional, But allow frameset content .
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
XHTML 1.0 Strict： The DTD Contains all the HTML Elements and attributes , But it doesn't include showy and abandoned elements （ such as font）. Framesets are not allowed （Framesets）. Must be in the correct format XML To write tags .
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
XHTML 1.0 Transitional： The DTD Contains all the HTML Elements and attributes , Including display and discard elements ( such as font). Framesets are not allowed （Framesets）. Must be in the correct format XML To write tags .
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
XHTML 1.0 Frameset： The DTD Equate to XHTML 1.0 Transitional, But allow frameset content .
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1： The DTD Equate to XHTML 1.0 Strict, But it allows you to add models （ For example, it provides information about East Asian languages ruby Support ）.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- XHTML 1.0 Of the three XML The document type DOCTYPE
XHTML 1.0 Of the three XML The document type XHTML 1.0 There are three kinds of XML The document type XHTML 1.0 Strict <!DOCTYPE html PUBLIC "-//W ...
- web The document type DOCTYPE html Very important
Written before html perhaps jsp page , Never pay attention to DOCTYPE Statement of , I don't quite understand DOCTYPE The role of . Until recently, I met a very wonderful bug: A page is in IE7 and 8,Chrome,ff Wait. It's normal , But in IE9 Next ...
- HTML DOCTYPE Examples of document types
HTML DOCTYPE Examples of document types HTML4.01 Document transition definition type , Documents defined by this type can use HTML Tags and elements in include some that are not W3C Recommended labels ( for example :font.b etc. ), You can't use frames < ...
- The document type DTD,DOCTYPE And browser mode
Source :http://blog.csdn.net/freshlover/article/details/11616563 After getting the web page from the server, the browser will search the web page according to the DOCTYPE Define the display page , If the document is properly defined ...
- HTML The document type DTD And browser mode
Although in compatible IE6 I often notice the difference between the two patterns , But the systematic understanding , I haven't summed it up yet . I read some information on the Internet . Combined with my own understanding, I summarized , Let's put it here and share it with you . After getting the web page from the server, the browser will search the web page according to the DO ...
- Doctype The document type 、 Function and trigger mode
Doctype The document type 1) The label can declare three kinds of DTD type , They are strict versions . Transition version and framework based HTML file . 2) HTML 4.01 Three document types are specified :Strict.Transit ...
- DOCTYPE html PUBLIC It specifies HTML The document type definition that the document follows
DOCTYPE html PUBLIC It specifies HTML The document type definition that the document follows Today I read an article CSS A friendly search for applications , I copy by the code on the page . After pasting, you can't preview it , But directly copying his instance can achieve the effect , ...
- doctype（ The document type ） What is the role of ? Reprint
<!DOCTYPE> Declaration at the top of the document , be in <html> Before the label . This tag tells the browser which document to use HTML or XHTML standard . Document Type ...
- !DOCTYPE html Short for document type declaration HTML5 DOCTYPE abbreviation
html5 And !DOCTYPE html Short for document type declaration , stay HTML5 in DOCTYPE Shorthand is very important . One . summary - TOP Give Way CSS The style sheet takes effect ,DOCTYPE A statement is necessary , before TABLE The net of layout ...
- Oracle Programming
Programming : Storage process , Custom function , trigger , package . Storage process In the command window, use exec transfer effect : A program stored in a database to perform a function Created in procedure in create or replace procedu ...
- mysql Autogenous sequence ( turn )
1: The principle is to create a trigger TRIGGER tri_NewBH stay table Perform sequence calculation on insert mysql),content ),`date` DATETIME,val INT); Query OK, ...
- oracle skill - Continuous updating
1. Sign in oracle database , perform select status from v$encryption_wallet, If you return OPEN, The wallet has been opened automatically . 2.
- spring springMVC mybatis Integrate
I have nothing to do recently , Sort it out spring springMVC mybatis Integrate , Many people have written about this topic in the garden , I mainly want to provide a complete demo, cover crud, Things control, etc . Whole demo There are three parts ...
- [Effective Modern C++] Item 6. Use the explicitly typed initializer idiom when auto deduces undesired types - Use explicit type initialization statements when inferring unexpected types
Clause 6 Use explicit type initialization statements when inferring unexpected types Basic knowledge of When using std::vector<bool> When , There are problems with type inference : std::vector<bool> featu ...
- Delphi Access the active directory
Active directory Active Directory Is used for Windows Server Directory service for , It stores information about various objects on the network , And make the information easy for administrators and users to find and use .Active Directory Use structured ...
- [ translate ]MEAN.IO And MEAN.JS The past and this life
Write it at the front : Because the project requires learning mean, So start with the environment , There are not many online tutorials , But there are many ways to feel it , I didn't think much about it , Start installing , Run it and find out how it differs from the directory structure in the installation tutorial ? For a long time , I've been looking through the catalog for a long time , total ...
The core of any language is bound to describe the basic working principles of the language . And the description usually involves this language The grammar of speech . The operator . data type . Built in functions and other basic concepts used to build complex solutions . As mentioned earlier , ECMA-262 By calling ECMAS ...
- python Lecture notes （ Two ）
- proxmox Remove the subscription prompt