What is a DTD document model

[2019.06.22 study notes 3]

1.DTD document model is a document DOCTYPE declaration is Doucument Type Definition abbreviation, is the document type definition

<! DOCTYPE html> <-! Tells the browser which version of HTML to use -> 
<HTML> <-! HTML document to start -> 
<head> </ head> <-! Custom browser, search engines read taken content -> 
<body> </ body> <-! display content pages -> 
</ HTML>

  

2. Create a standard page, declare a correct DOCTPYE, HTML and CSS to identify which of the normal effect.

3. HTML tags are not case-insensitive, there is no end tag

4.DTD document model, there are three ways in HTML4 statement, whereas only one in HTML5

<! DOCTYPE HTML> // HTML 5 

<! DOCTYPE HTML the PUBLIC "- // the W3C // DTD HTML 4.01 // EN" "http://www.w3.org/TR/html4/strict.dtd"> // strict HTML 4.01 strict 
this DTD contains all HTML elements and attributes, but does not include the display of and deprecated elements (like font). Do not allow frameset (Framesets). <! DOCTYPE HTML the PUBLIC "- // the W3C // DTD HTML 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd"> // HTML 4.01 Transitional transition to the DTD contains all HTML elements and attributes, including illustrative and deprecated elements (such as font). Do not allow frameset (Framesets). <! DOCTYPE the HTML the PUBLIC "- // the W3C // DTD the Frameset the HTML 4.01 // EN" "http://www.w3.org/TR/html4/frameset.dtd"> // the HTML 4.01 the Frameset frame which is equivalent to the DTD HTML 4.01 Transitional, but set to allow the contents of the frame. <! DOCTYPE HTML the PUBLIC "- // the W3C // DTD XHTML 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> / XHTML 1.0 Strict The HTML DTD contains all elements and attributes, but do not include illustrative and deprecated elements (such as font). Do not allow frameset (Framesets). You must be well-formed XML to write the tag. <! DOCTYPE HTML the PUBLIC "- // the W3C // DTD XHTML 1.0 Transitional // EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> // XHTML 1.0 Transitional The HTML DTD contains all elements and attributes, including illustrative and deprecated elements (such as font). Do not allow frameset (Framesets). You must be well-formed XML to write the tag. <! DOCTYPE HTML the PUBLIC "- // the W3C // DTD XHTML 1.0 Frameset // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> // XHTML 1.0 Frameset this is equivalent to the DTD XHTML 1.0 Transitional, but set to allow the contents of the frame. ! <DOCTYPE html PUBLIC "- // W3C // DTD XHTML 1.1 // EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">//XHTML 1.1 which is equivalent to the DTD XHTML 1.0 Strict, but allows you to add model (for example, to provide ruby support for East Asian language family).

  

Guess you like

Origin www.cnblogs.com/Caixingmin/p/11068160.html
DTD