PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/test/target/ok/table.xhtmls

http://txt2tags.googlecode.com/
Unknown | 447 lines | 405 code | 42 blank | 0 comment | 0 complexity | f839f12cb821335443ace620610e3d69 MD5 | raw file
  1<?xml version="1.0"
  2?>
  3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4<html xmlns="http://www.w3.org/1999/xhtml">
  5<head>
  6<meta name="generator" content="http://txt2tags.org" />
  7<style type="text/css">body {background-color:#FFFFFF ; color:#000000}</style>
  8</head>
  9<body>
 10<div style="text-align:center">
 11</div>
 12
 13
 14<h1>Simple table</h1>
 15
 16<table cellpadding="4">
 17<tr>
 18<td>Cell 1-1</td>
 19<td>Cell 1-2</td>
 20<td>Cell 1-3</td>
 21</tr>
 22<tr>
 23<td>Cell 2-1</td>
 24<td>Cell 2-2</td>
 25<td>Cell 2-3</td>
 26</tr>
 27<tr>
 28<td>Cell 3-1</td>
 29<td>Cell 3-2</td>
 30<td>Cell 3-3</td>
 31</tr>
 32</table>
 33
 34<h1>Simple table + border</h1>
 35
 36<table border="1" cellpadding="4">
 37<tr>
 38<td>Cell 1-1</td>
 39<td>Cell 1-2</td>
 40<td>Cell 1-3</td>
 41</tr>
 42<tr>
 43<td>Cell 2-1</td>
 44<td>Cell 2-2</td>
 45<td>Cell 2-3</td>
 46</tr>
 47<tr>
 48<td>Cell 3-1</td>
 49<td>Cell 3-2</td>
 50<td>Cell 3-3</td>
 51</tr>
 52</table>
 53
 54<h1>Simple table + heading</h1>
 55
 56<table cellpadding="4">
 57<tr>
 58<th>Head 1-1</th>
 59<th>Head 1-2</th>
 60<th>Head 1-3</th>
 61</tr>
 62<tr>
 63<td>Cell 1-1</td>
 64<td>Cell 1-2</td>
 65<td>Cell 1-3</td>
 66</tr>
 67<tr>
 68<td>Cell 2-1</td>
 69<td>Cell 2-2</td>
 70<td>Cell 2-3</td>
 71</tr>
 72<tr>
 73<td>Cell 3-1</td>
 74<td>Cell 3-2</td>
 75<td>Cell 3-3</td>
 76</tr>
 77</table>
 78
 79<h1>Simple table + heading + border</h1>
 80
 81<table border="1" cellpadding="4">
 82<tr>
 83<th>Head 1-1</th>
 84<th>Head 1-2</th>
 85<th>Head 1-3</th>
 86</tr>
 87<tr>
 88<td>Cell 1-1</td>
 89<td>Cell 1-2</td>
 90<td>Cell 1-3</td>
 91</tr>
 92<tr>
 93<td>Cell 2-1</td>
 94<td>Cell 2-2</td>
 95<td>Cell 2-3</td>
 96</tr>
 97<tr>
 98<td>Cell 3-1</td>
 99<td>Cell 3-2</td>
100<td>Cell 3-3</td>
101</tr>
102</table>
103
104<h1>Simple table + heading + border + footer</h1>
105
106<table border="1" cellpadding="4">
107<tr>
108<th>Head 1-1</th>
109<th>Head 1-2</th>
110<th>Head 1-3</th>
111</tr>
112<tr>
113<td>Cell 1-1</td>
114<td>Cell 1-2</td>
115<td>Cell 1-3</td>
116</tr>
117<tr>
118<td>Cell 2-1</td>
119<td>Cell 2-2</td>
120<td>Cell 2-3</td>
121</tr>
122<tr>
123<td>Cell 3-1</td>
124<td>Cell 3-2</td>
125<td>Cell 3-3</td>
126</tr>
127<tr>
128<th>Foot 1-1</th>
129<th>Foot 1-2</th>
130<th>Foot 1-3</th>
131</tr>
132</table>
133
134<h1>Simple table + heading + border + centralized</h1>
135
136<table style="margin-left: auto; margin-right: auto;" border="1" cellpadding="4">
137<tr>
138<th>Head 1-1</th>
139<th>Head 1-2</th>
140<th>Head 1-3</th>
141</tr>
142<tr>
143<td>Cell 1-1</td>
144<td>Cell 1-2</td>
145<td>Cell 1-3</td>
146</tr>
147<tr>
148<td>Cell 2-1</td>
149<td>Cell 2-2</td>
150<td>Cell 2-3</td>
151</tr>
152<tr>
153<td>Cell 3-1</td>
154<td>Cell 3-2</td>
155<td>Cell 3-3</td>
156</tr>
157</table>
158
159<h1>Cell alignment</h1>
160
161<table border="1" cellpadding="4">
162<tr>
163<td>=======</td>
164<td>=======</td>
165</tr>
166<tr>
167<td>&lt;</td>
168<td style="text-align:right">&gt;</td>
169</tr>
170<tr>
171<td style="text-align:center">=</td>
172<td style="text-align:center">=</td>
173</tr>
174<tr>
175<td style="text-align:right">&gt;</td>
176<td>&lt;</td>
177</tr>
178</table>
179
180<h1>Heading alignment</h1>
181
182<table border="1" cellpadding="4">
183<tr>
184<th>=======</th>
185<th>=======</th>
186</tr>
187<tr>
188<th>&lt;</th>
189<th>&gt;</th>
190</tr>
191<tr>
192<th>=</th>
193<th>=</th>
194</tr>
195<tr>
196<th>&gt;</th>
197<th>&lt;</th>
198</tr>
199</table>
200
201<h1>Column span for cells</h1>
202
203<table border="1" cellpadding="4">
204<tr>
205<td>1</td>
206<td>2</td>
207<td>3</td>
208<td>4</td>
209</tr>
210<tr>
211<td>1</td>
212<td>2</td>
213<td colspan="2">3 + 4</td>
214</tr>
215<tr>
216<td colspan="3">1 + 2 + 3</td>
217<td>4</td>
218</tr>
219<tr>
220<td>1</td>
221<td colspan="2">2 + 3</td>
222<td>4</td>
223</tr>
224<tr>
225<td colspan="4">1 + 2 + 3 + 4</td>
226</tr>
227</table>
228
229<h1>Column span for headings</h1>
230
231<table border="1" cellpadding="4">
232<tr>
233<th>1</th>
234<th>2</th>
235<th>3</th>
236<th>4</th>
237</tr>
238<tr>
239<th>1</th>
240<th>2</th>
241<th colspan="2">3 + 4</th>
242</tr>
243<tr>
244<th colspan="3">1 + 2 + 3</th>
245<th>4</th>
246</tr>
247<tr>
248<th>1</th>
249<th colspan="2">2 + 3</th>
250<th>4</th>
251</tr>
252<tr>
253<th colspan="4">1 + 2 + 3 + 4</th>
254</tr>
255</table>
256
257<h1>Cell alignment + column span</h1>
258
259<table border="1" cellpadding="4">
260<tr>
261<td>=======</td>
262<td>=======</td>
263<td>=======</td>
264</tr>
265<tr>
266<td colspan="2">&lt;</td>
267<td style="text-align:center">=</td>
268</tr>
269<tr>
270<td style="text-align:center" colspan="3">=</td>
271</tr>
272<tr>
273<td style="text-align:center">=</td>
274<td style="text-align:right" colspan="2">&gt;</td>
275</tr>
276</table>
277
278<h1>Heading alignment + column span</h1>
279
280<table border="1" cellpadding="4">
281<tr>
282<th>=======</th>
283<th>=======</th>
284<th>=======</th>
285</tr>
286<tr>
287<th colspan="2">&lt;</th>
288<th>=</th>
289</tr>
290<tr>
291<th colspan="3">=</th>
292</tr>
293<tr>
294<th>=</th>
295<th colspan="2">&gt;</th>
296</tr>
297</table>
298
299<h1>Some empty cells</h1>
300
301<table border="1" cellpadding="4">
302<tr>
303<td>A</td>
304<td>B</td>
305<td>C</td>
306<td>D</td>
307<td></td>
308</tr>
309<tr>
310<td>F</td>
311<td>G</td>
312<td>H</td>
313<td></td>
314<td>J</td>
315</tr>
316<tr>
317<td>K</td>
318<td>L</td>
319<td></td>
320<td>N</td>
321<td>O</td>
322</tr>
323<tr>
324<td>P</td>
325<td></td>
326<td>R</td>
327<td>S</td>
328<td>T</td>
329</tr>
330<tr>
331<td></td>
332<td>V</td>
333<td>W</td>
334<td>X</td>
335<td>Y</td>
336</tr>
337</table>
338
339<h1>Lines with different number of cells, increase</h1>
340
341<table border="1" cellpadding="4">
342<tr>
343<td>1</td>
344</tr>
345<tr>
346<td>1</td>
347<td>2</td>
348</tr>
349<tr>
350<td>1</td>
351<td>2</td>
352<td>3</td>
353</tr>
354<tr>
355<td>1</td>
356<td>2</td>
357<td>3</td>
358<td>4</td>
359</tr>
360<tr>
361<td>1</td>
362<td>2</td>
363<td>3</td>
364<td>4</td>
365<td>5</td>
366</tr>
367</table>
368
369<h1>Lines with different number of cells, decrease</h1>
370
371<table border="1" cellpadding="4">
372<tr>
373<td>1</td>
374<td>2</td>
375<td>3</td>
376<td>4</td>
377<td>5</td>
378</tr>
379<tr>
380<td>1</td>
381<td>2</td>
382<td>3</td>
383<td>4</td>
384</tr>
385<tr>
386<td>1</td>
387<td>2</td>
388<td>3</td>
389</tr>
390<tr>
391<td>1</td>
392<td>2</td>
393</tr>
394<tr>
395<td>1</td>
396</tr>
397</table>
398
399<h1>One cell table</h1>
400
401<table cellpadding="4">
402<tr>
403<td>Cell 1</td>
404</tr>
405</table>
406
407<h1>One cell table + border</h1>
408
409<table border="1" cellpadding="4">
410<tr>
411<td>Cell 1</td>
412</tr>
413</table>
414
415<h1>One cell table + heading</h1>
416
417<table cellpadding="4">
418<tr>
419<th>Head 1</th>
420</tr>
421</table>
422
423<h1>One cell table + heading + border</h1>
424
425<table border="1" cellpadding="4">
426<tr>
427<th>Head 1</th>
428</tr>
429</table>
430
431<h1>Empty lines</h1>
432
433<table border="1" cellpadding="4">
434<tr>
435<td></td>
436</tr>
437<tr>
438<td></td>
439</tr>
440<tr>
441<td></td>
442</tr>
443</table>
444
445<!-- xhtmls code generated by txt2tags (http://txt2tags.org) -->
446<!-- cmdline: txt2tags -q -\-no-rc -i table.t2t -t xhtmls -->
447</body></html>