Results 1 to 2 of 2

Thread: strict VS transitional??

  1. #1

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    strict VS transitional??

    What are the differens between these 2 lines?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 strict//EN" >
    VS
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN" >

    What does strict do that transitional doesnt??

    This code works when I hav strict but not when I have transitional, why??
    VB Code:
    1. <table height='150px' width='150px' border='1'>
    2.   <tr>
    3.     <td>Pelle
    4. <span id="BilockListView1" style="height:100px;width:100px;">
    5. <div style='height:100px;width:100px'>
    6. <div style='overflow: scroll;overflow-x:hidden;height:100%' id='tC'>
    7. <table ID='BilockListView1'>
    8. <tr style="top:expression(document.getElementById('tC').scrollTop);position:relative;">
    9. <td>PubId</td>
    10. <td>OrgName</td>
    11. <td>Edition</td>
    12. </tr>
    13.  
    14. <tr><td>4</td><td>654 SMO Datasheet</td><td>-99</td></tr>
    15. <tr><td>1</td><td>AvestaPolarit Stainless Steel</td><td>-00</td></tr>
    16. <tr><td>3</td><td>Machining handbook</td><td>-99</td></tr>
    17. <tr><td>2</td><td>Welding guidelines</td><td>-99</td></tr>
    18.  
    19. </table></div></div></span>
    20.     </td>
    21.     <td>Olle</td>
    22.    </tr>
    23. </table>
    Onerrorgoto

    Dont be to optimistic, the light at the end of the tunnel might be a train

  2. #2
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    For the differences between Strict and Transitional, and for any and all information about HTML, you should always check the authoritative source: The World Wide Web Consortium.

    Just looking at it, I can't figure out why it works under the Strict DTD, but not the Transitional. I would expect it to be the other way around. I would think the height, width, and border attributes of the table element would be deprecated and not supported in Strict.

    There are other problems in your document, but I dont think most browsers would care. You should be consistent and use the single quote or the double quote, but not both. And SPAN should be used inline, and DIV at the block level. So a SPAN really shouldn't hold a DIV.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width