Debian Codegraph @

t/docs-php-markdown-extra/Tables.html

raw
1 <h1>Simple tables</h1>
2
3 <table>
4 <thead>
5 <tr>
6 <th>Header 1</th>
7 <th>Header 2</th>
8 </tr>
9 </thead>
10 <tbody>
11 <tr>
12 <td>Cell 1</td>
13 <td>Cell 2</td>
14 </tr>
15 <tr>
16 <td>Cell 3</td>
17 <td>Cell 4</td>
18 </tr>
19 </tbody>
20 </table>
21
22 <p>With leading pipes:</p>
23
24 <table>
25 <thead>
26 <tr>
27 <th>Header 1</th>
28 <th>Header 2</th>
29 </tr>
30 </thead>
31 <tbody>
32 <tr>
33 <td>Cell 1</td>
34 <td>Cell 2</td>
35 </tr>
36 <tr>
37 <td>Cell 3</td>
38 <td>Cell 4</td>
39 </tr>
40 </tbody>
41 </table>
42
43 <p>With tailing pipes:</p>
44
45 <table>
46 <thead>
47 <tr>
48 <th>Header 1</th>
49 <th>Header 2</th>
50 </tr>
51 </thead>
52 <tbody>
53 <tr>
54 <td>Cell 1</td>
55 <td>Cell 2</td>
56 </tr>
57 <tr>
58 <td>Cell 3</td>
59 <td>Cell 4</td>
60 </tr>
61 </tbody>
62 </table>
63
64 <p>With leading and tailing pipes:</p>
65
66 <table>
67 <thead>
68 <tr>
69 <th>Header 1</th>
70 <th>Header 2</th>
71 </tr>
72 </thead>
73 <tbody>
74 <tr>
75 <td>Cell 1</td>
76 <td>Cell 2</td>
77 </tr>
78 <tr>
79 <td>Cell 3</td>
80 <td>Cell 4</td>
81 </tr>
82 </tbody>
83 </table>
84
85 <hr />
86
87 <h1>One-column one-row table</h1>
88
89 <p>With leading pipes:</p>
90
91 <table>
92 <thead>
93 <tr>
94 <th>Header</th>
95 </tr>
96 </thead>
97 <tbody>
98 <tr>
99 <td>Cell</td>
100 </tr>
101 </tbody>
102 </table>
103
104 <p>With tailing pipes:</p>
105
106 <table>
107 <thead>
108 <tr>
109 <th>Header</th>
110 </tr>
111 </thead>
112 <tbody>
113 <tr>
114 <td>Cell</td>
115 </tr>
116 </tbody>
117 </table>
118
119 <p>With leading and tailing pipes:</p>
120
121 <table>
122 <thead>
123 <tr>
124 <th>Header</th>
125 </tr>
126 </thead>
127 <tbody>
128 <tr>
129 <td>Cell</td>
130 </tr>
131 </tbody>
132 </table>
133
134 <hr />
135
136 <p>Table alignement:</p>
137
138 <table>
139 <thead>
140 <tr>
141 <th>Default</th>
142 <th align="left">Right</th>
143 <th align="center">Center</th>
144 <th align="right">Left</th>
145 </tr>
146 </thead>
147 <tbody>
148 <tr>
149 <td>Long Cell</td>
150 <td align="left">Long Cell</td>
151 <td align="center">Long Cell</td>
152 <td align="right">Long Cell</td>
153 </tr>
154 <tr>
155 <td>Cell</td>
156 <td align="left">Cell</td>
157 <td align="center">Cell</td>
158 <td align="right">Cell</td>
159 </tr>
160 </tbody>
161 </table>
162
163 <p>Table alignement (alternate spacing):</p>
164
165 <table>
166 <thead>
167 <tr>
168 <th>Default</th>
169 <th align="left">Right</th>
170 <th align="center">Center</th>
171 <th align="right">Left</th>
172 </tr>
173 </thead>
174 <tbody>
175 <tr>
176 <td>Long Cell</td>
177 <td align="left">Long Cell</td>
178 <td align="center">Long Cell</td>
179 <td align="right">Long Cell</td>
180 </tr>
181 <tr>
182 <td>Cell</td>
183 <td align="left">Cell</td>
184 <td align="center">Cell</td>
185 <td align="right">Cell</td>
186 </tr>
187 </tbody>
188 </table>
189
190 <hr />
191
192 <h1>Empty cells</h1>
193
194 <table>
195 <thead>
196 <tr>
197 <th>Header 1</th>
198 <th>Header 2</th>
199 </tr>
200 </thead>
201 <tbody>
202 <tr>
203 <td>A</td>
204 <td>B</td>
205 </tr>
206 <tr>
207 <td>C</td>
208 <td></td>
209 </tr>
210 </tbody>
211 </table>
212
213 <table>
214 <thead>
215 <tr>
216 <th>Header 1</th>
217 <th>Header 2</th>
218 </tr>
219 </thead>
220 <tbody>
221 <tr>
222 <td>A</td>
223 <td>B</td>
224 </tr>
225 <tr>
226 <td></td>
227 <td>D</td>
228 </tr>
229 </tbody>
230 </table>
231
232 <hr />
233
234 <h1>Missing tailing pipe</h1>
235
236 <table>
237 <thead>
238 <tr>
239 <th>Header 1</th>
240 <th>Header 2</th>
241 </tr>
242 </thead>
243 <tbody>
244 <tr>
245 <td>Cell</td>
246 <td>Cell</td>
247 </tr>
248 <tr>
249 <td>Cell</td>
250 <td>Cell</td>
251 </tr>
252 </tbody>
253 </table>
254
255 <table>
256 <thead>
257 <tr>
258 <th>Header 1</th>
259 <th>Header 2</th>
260 </tr>
261 </thead>
262 <tbody>
263 <tr>
264 <td>Cell</td>
265 <td>Cell</td>
266 </tr>
267 <tr>
268 <td>Cell</td>
269 <td>Cell</td>
270 </tr>
271 </tbody>
272 </table>
273
274 <table>
275 <thead>
276 <tr>
277 <th>Header 1</th>
278 <th>Header 2</th>
279 </tr>
280 </thead>
281 <tbody>
282 <tr>
283 <td>Cell</td>
284 <td>Cell</td>
285 </tr>
286 <tr>
287 <td>Cell</td>
288 <td>Cell</td>
289 </tr>
290 </tbody>
291 </table>
292
293 <table>
294 <thead>
295 <tr>
296 <th>Header 1</th>
297 <th>Header 2</th>
298 </tr>
299 </thead>
300 <tbody>
301 <tr>
302 <td>Cell</td>
303 <td>Cell</td>
304 </tr>
305 <tr>
306 <td>Cell</td>
307 <td>Cell</td>
308 </tr>
309 </tbody>
310 </table>