<!doctype>
   @EBvi
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
DOCTYPE   ?
•   Document Type Definition
•
•       DTD
DOCTYPE
                    ?

•
         .

•    Quirks mode(       )
            .
• Quirks mode       Cross Browsing

                .

•         Cross Browsing
               DTD                   .
?
•   width, padding, border

•   margin:0 auto

•   block-label

•                 (:hover)



•
Quirks mode

• DOCTYPE       Quirks


•
Quirks mode


•                     (X)

• javascript engine         (X)
Quirks mode
DOM
DTD
DTD
DTD
•      4


• HTML 4.01 Strict mode
• HTML 4.01 Transitional mode
• XHTML 1.0 Strict mode
• XHTML 1.0 Transitional mode
HTML4.01 Transitional
• element
• position, display
• scrolling layer
• frame

•
HTML4.01 Strict

•           element, attribute, frame


• element

•
XHTML 1.0 Transitional

•            HTML4-transitional


• frameset          FF
XHTML 1.0 Strict


•    HTML4-Strict
DTD

                                       IE   FF   OP
none        DTD                        Q    Q    Q
           <!doctype transitional      A    A    A
HTML    <!doctype transitional loose   A     S    S
 4.01       <!doctype html4.01         A     S    S
              <!doctype strict         A     S    S
XHTML      <!doctype transitional      A    A    A
 1.0          <!doctype strict         A     S    S
html5 doctype
• <!doctype html>
• HTML5 HTML4         XHTML1
              .

• transitional mode
                          .

• IE8
anymore thing?
HTML4 vs XHTML1.0
• well-formed
• element, attribute                   ,
        ,

•         ... http://www.w3.org/TR/xhtml1/
    diffs.html
• DTD
• Quirks mode
•                     HTML4
  Transitional mode
Doctype

Doctype