1 <!doctype HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <p>This is a table with a
<code>td align=center
</code> that has a p, a table,
4 <table border
width=
"30%">
8 <table width=
80% border
>
18 <p>This time the inner table has
<code>width=
"100%"</code>, so you can see
19 that the CSS spec isn't quite being followed. The CSS spec says that
20 the align=center carries down as text-align and never acts to move blocks.
21 You're not moving the block for the table (above), but you're not doing
22 the text-align inside it either. In quirks mode you should do the former,
23 in standard mode, the latter.
</p>
25 <table border
width=
"30%">
29 <table border
width=
"100%">
39 <table width=
300 border
align=
"center">
40 <tr><td>Data of Table
1!
</td></tr>
45 <table width=
300 border
style=
"text-align: center">
46 <tr><td>Data of Table
2!
</td></tr>
51 <div style=
"border: 1px solid black" align=
"center">
53 <tr><td>Data of Table
3!
</td></tr>
59 <div style=
"text-align: center; border: 1px solid black;">
61 <tr><td>Data of Table
4!
</td></tr>
82 <p>...should look identical to the first one below:
</p>
87 <div align=center
>Text, followed by
</div>
91 <div align=center
>A table.
</div>
99 <p>However, in standard mode, the first table should look like this:
104 <div align=center
>Text, followed by
</div>
116 <p>For reference, the second table has its text all centered, the third table has the
"A table." line
121 <p> See also:
<a href=
"tablealign.strict.html">Strict Mode Version
</a> </p>