PDA

Click to See Complete Forum and Search --> : strict VS transitional??


onerrorgoto
Aug 8th, 2003, 07:18 AM
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??

<table height='150px' width='150px' border='1'>
<tr>
<td>Pelle
<span id="BilockListView1" style="height:100px;width:100px;">
<div style='height:100px;width:100px'>
<div style='overflow: scroll;overflow-x:hidden;height:100%' id='tC'>
<table ID='BilockListView1'>
<tr style="top:expression(document.getElementById('tC').scrollTop);position:relative;">
<td>PubId</td>
<td>OrgName</td>
<td>Edition</td>
</tr>

<tr><td>4</td><td>654 SMO Datasheet</td><td>-99</td></tr>
<tr><td>1</td><td>AvestaPolarit Stainless Steel</td><td>-00</td></tr>
<tr><td>3</td><td>Machining handbook</td><td>-99</td></tr>
<tr><td>2</td><td>Welding guidelines</td><td>-99</td></tr>

</table></div></div></span>
</td>
<td>Olle</td>
</tr>
</table>

Travis G
Aug 12th, 2003, 09:36 AM
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 (http://www.w3c.org/).

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.