| 1 |
<html> |
| 2 |
<h1>Easy stuff</h1> |
| 3 |
<h2>One format</h2> |
| 4 |
<p>A <b>bold</b> part. |
| 5 |
</p> |
| 6 |
<p>An <i>italic</i> part. |
| 7 |
</p> |
| 8 |
<p>An <u>underlined</u> part. |
| 9 |
</p> |
| 10 |
<p>A <s>striked out</s> part. |
| 11 |
</p> |
| 12 |
|
| 13 |
<p><span style="color:blue;">the color blue</span>.</p> |
| 14 |
|
| 15 |
<p><span style="background-color:red;">the backbround color red</span>.</p> |
| 16 |
|
| 17 |
<p><span style="font-family:courier;">the courier font</span>.</p> |
| 18 |
|
| 19 |
<p><span style="font-size:xx-large;">Very large text</span> |
| 20 |
|
| 21 |
<h2>Two formats</h2> |
| 22 |
<p>A <b><i>bold/italic</i></b> part. |
| 23 |
</p> |
| 24 |
<p>A <b><u>bold/underlined</u></b> part. |
| 25 |
</p> |
| 26 |
<p>An <u><s>underlined/striked</s></u> part. |
| 27 |
</p> |
| 28 |
<p>A <s><b>Bold/striked out</b></s> part. |
| 29 |
</p> |
| 30 |
|
| 31 |
<h2>Two formats at edges</h2> |
| 32 |
<p><b><i>A bold/italic</i></b> part. |
| 33 |
</p> |
| 34 |
<p>A bold/underlined <b><u>part.</u></b> |
| 35 |
</p> |
| 36 |
|
| 37 |
<h2>Format boundaries</h2> |
| 38 |
<p>An adjacent <b>bold</b><u>underlined</u> part. |
| 39 |
</p> |
| 40 |
<p>An overlapping <b>bold <u>and </u></b><u>underlined</u> part. |
| 41 |
</p> |
| 42 |
<p>Bold inside <u>un<b>derl</b>ined</u> part. |
| 43 |
</p> |
| 44 |
|
| 45 |
<h2>Lists</h2> |
| 46 |
<h3>Unordered lists</h3> |
| 47 |
Disc: |
| 48 |
<ul> |
| 49 |
<li>this</li> |
| 50 |
<li>that</li> |
| 51 |
<li>these</li> |
| 52 |
<li>those</li> |
| 53 |
</ul> |
| 54 |
|
| 55 |
Circle: |
| 56 |
<ul style="list-style-type: circle;"> |
| 57 |
<li>this</li> |
| 58 |
<li>that</li> |
| 59 |
<li>these</li> |
| 60 |
<li>those</li> |
| 61 |
</ul> |
| 62 |
|
| 63 |
Square: |
| 64 |
<ul style="list-style-type: square;"> |
| 65 |
<li>this</li> |
| 66 |
<li>that</li> |
| 67 |
<li>these</li> |
| 68 |
<li>those</li> |
| 69 |
</ul> |
| 70 |
|
| 71 |
<h3>Ordered lists</h3> |
| 72 |
|
| 73 |
Decimal: |
| 74 |
<ol style="list-style-type: decimal;"> |
| 75 |
<li>this</li> |
| 76 |
<li>that</li> |
| 77 |
<li>these</li> |
| 78 |
<li>those</li> |
| 79 |
</ol> |
| 80 |
|
| 81 |
Alpha lowercase: |
| 82 |
<ol style="list-style-type: lower-alpha;"> |
| 83 |
<li>this</li> |
| 84 |
<li>that</li> |
| 85 |
<li>these</li> |
| 86 |
<li>those</li> |
| 87 |
</ol> |
| 88 |
|
| 89 |
Alpha uppercase: |
| 90 |
<ol style="list-style-type: upper-alpha;"> |
| 91 |
<li>this</li> |
| 92 |
<li>that</li> |
| 93 |
<li>these</li> |
| 94 |
<li>those</li> |
| 95 |
</ol> |
| 96 |
|
| 97 |
<h3>Nested lists</h3> |
| 98 |
|
| 99 |
<ol> |
| 100 |
<li>this</li> |
| 101 |
<li> |
| 102 |
<ul> |
| 103 |
<li>Fizz</li> |
| 104 |
<li>Bang</li> |
| 105 |
<li>Crash</li> |
| 106 |
<li>Wallop</li> |
| 107 |
</ul> |
| 108 |
</li> |
| 109 |
<li>these</li> |
| 110 |
<ul> |
| 111 |
<li>nest</li> |
| 112 |
<ul> |
| 113 |
<li>nested</li> |
| 114 |
<ul> |
| 115 |
<li>dumb</li> |
| 116 |
<ul> |
| 117 |
<li>dumber</li> |
| 118 |
</ul> |
| 119 |
</ul> |
| 120 |
</ul> |
| 121 |
</ul> |
| 122 |
<li>those</li> |
| 123 |
</ol> |
| 124 |
|
| 125 |
<h3>Images</h3> |
| 126 |
|
| 127 |
A local image: |
| 128 |
|
| 129 |
A remote image: |
| 130 |
|
| 131 |
<h3>Links</h3> |
| 132 |
A named link to <a href="http://www.google.com">google</a>. |
| 133 |
|
| 134 |
A raw link to <a href="http://pim.google.com">http://pim.google.com</a>. |
| 135 |
|
| 136 |
An image link to <a href="http://google.com/"><img src="http://www.google.com/logo.png" /></a>. |
| 137 |
|
| 138 |
Another named <a href="http://contact.google.com">link</a>. |
| 139 |
|
| 140 |
Another link to <a href="http://www.google.com">The google homepage</a>. |
| 141 |
|
| 142 |
A formatted <a href="http://office.google.com"><s>link</s></a>. |
| 143 |
|
| 144 |
<h3>Tables</h3> |
| 145 |
|
| 146 |
<h4>Tables with no defined width attributes</h4> |
| 147 |
Simple grid: |
| 148 |
<table border="1"> |
| 149 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 150 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 151 |
</table> |
| 152 |
|
| 153 |
Simple grid with colspan: |
| 154 |
<table border="1"> |
| 155 |
<tr><td colspan="2">one-one and one-two</td><td>one-three</td></tr> |
| 156 |
<tr><td>two-one</td><td>two-two</td><td>two-three</td></tr> |
| 157 |
</table> |
| 158 |
|
| 159 |
Simple grid with rowspan: |
| 160 |
<table border="1"> |
| 161 |
<tr><td rowspan="2">one-one and two-one</td><td>one-three</td></tr> |
| 162 |
<tr><td>two-two</td></tr> |
| 163 |
<tr><td>three-one</td><td>three-two</td></tr> |
| 164 |
</table> |
| 165 |
|
| 166 |
Simple grid with missing bottom right cell. |
| 167 |
<table border="1"> |
| 168 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 169 |
<tr><td>two-one</td></tr> |
| 170 |
</table> |
| 171 |
|
| 172 |
Table with header: |
| 173 |
<table border="1"> |
| 174 |
<tr><th>Col1</th><th>Col2</th></tr> |
| 175 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 176 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 177 |
</table> |
| 178 |
|
| 179 |
Table with wide content: |
| 180 |
<table border="1"> |
| 181 |
<tr><td>one-one</td><td>one-two</td><td>Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td><td>Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td></tr> |
| 182 |
<tr><td>two-one</td><td>two-two</td><td>Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td><td>Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td></tr> |
| 183 |
</table> |
| 184 |
|
| 185 |
|
| 186 |
Table with formatted contents: |
| 187 |
<table border="1"> |
| 188 |
<tr><td><b>bold</b></td><td>a <a href="http://google.com">link</a>.</td></tr> |
| 189 |
<tr><td><span style="font-size:xx-large;">big text</span></td><td><span style="font-family:courier;">another font</span></td></tr> |
| 190 |
</table> |
| 191 |
|
| 192 |
Table with nested table: |
| 193 |
<table border="1"> |
| 194 |
<tr><th>Col1</th><th>Col2</th></tr> |
| 195 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 196 |
<tr><td>two-one</td><td> |
| 197 |
<table border="1"> |
| 198 |
<tr><th>Col1</th><th>Col2</th></tr> |
| 199 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 200 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 201 |
</table> |
| 202 |
</td></tr> |
| 203 |
</table> |
| 204 |
|
| 205 |
<h4>Tables with widths defined</h4> |
| 206 |
Table with 50 percent width |
| 207 |
<table border="1" width="50%"> |
| 208 |
<tr><th>Col1</th><th>Col2</th></tr> |
| 209 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 210 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 211 |
</table> |
| 212 |
|
| 213 |
Table with 50 percent width and 70% first column width |
| 214 |
<table border="1" width="50%"> |
| 215 |
<tr><th width="70%">Col1</th><th>Col2</th></tr> |
| 216 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 217 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 218 |
</table> |
| 219 |
|
| 220 |
Table with 50 percent width and 100px first column width |
| 221 |
<table border="1" width="50%"> |
| 222 |
<tr><th width="100">Col1</th><th>Col2</th></tr> |
| 223 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 224 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 225 |
</table> |
| 226 |
|
| 227 |
Table with 100px first column width: |
| 228 |
<table border="1"> |
| 229 |
<tr><th width="100">Col1</th><th>Col2</th></tr> |
| 230 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 231 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 232 |
</table> |
| 233 |
|
| 234 |
Table with 10% first column width (makes second column 9 times wider): |
| 235 |
<table border="1"> |
| 236 |
<tr><th width="10%">Col1</th><th>Col2</th></tr> |
| 237 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 238 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 239 |
</table> |
| 240 |
|
| 241 |
Table with 10% first column width on the first row and 20% width on the next row: |
| 242 |
<table border="1"> |
| 243 |
<tr><th width="10%">Col1</th><th>Col2</th></tr> |
| 244 |
<tr><td width="20%">one-one</td><td>one-two</td></tr> |
| 245 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 246 |
</table> |
| 247 |
|
| 248 |
Table with 300px width: |
| 249 |
<table border="1" width="300"> |
| 250 |
<tr><th>Col1</th><th>Col2</th></tr> |
| 251 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 252 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 253 |
</table> |
| 254 |
|
| 255 |
Table with 300px width, first column width 100px, second column width 200px: |
| 256 |
<table border="1" width="300"> |
| 257 |
<tr><th width="100">Col1</th><th width="200">Col2</th></tr> |
| 258 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 259 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 260 |
</table> |
| 261 |
|
| 262 |
<h4>Tables with non matching fixed widths</h4> |
| 263 |
|
| 264 |
Table with 300px width, first column width 100px, second column width 100px: |
| 265 |
<table border="1" width="300"> |
| 266 |
<tr><th width="100">Col1</th><th width="100">Col2</th></tr> |
| 267 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 268 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 269 |
</table> |
| 270 |
|
| 271 |
Table with 300px width, first column width 75px, second column width 225px: |
| 272 |
<table border="1" width="300"> |
| 273 |
<tr><th width="75">Col1</th><th width="225">Col2</th></tr> |
| 274 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 275 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 276 |
</table> |
| 277 |
|
| 278 |
Table with 300px width, first column width 75px, second column width 150px: |
| 279 |
<table border="1" width="300"> |
| 280 |
<tr><th width="75">Col1</th><th width="150">Col2</th></tr> |
| 281 |
<tr><td>one-one</td><td>one-two</td></tr> |
| 282 |
<tr><td>two-one</td><td>two-two</td></tr> |
| 283 |
</table> |
| 284 |
|
| 285 |
|
| 286 |
<h3>Paragraph formatting</h3> |
| 287 |
|
| 288 |
<h4>Left aligned paragraph. (Reversed in RTL).</h4> |
| 289 |
<p align="left"> |
| 290 |
Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
| 291 |
</p> |
| 292 |
|
| 293 |
<h4>Right aligned paragraph. (Reversed in RTL).</h4> |
| 294 |
<p align="right"> |
| 295 |
Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
| 296 |
</p> |
| 297 |
|
| 298 |
<h4>Center aligned paragraph.</h4> |
| 299 |
<p align="center"> |
| 300 |
Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
| 301 |
</p> |
| 302 |
|
| 303 |
<h4>Justified paragraph.</h4> |
| 304 |
<p align="justify"> |
| 305 |
Lorem Ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
| 306 |
</p> |
| 307 |
|
| 308 |
<p>lorem ipsum</p> |
| 309 |
<p style="margin-top:10px;margin-bottom:0px;"> |
| 310 |
Margin above this paragraph. No margin below. |
| 311 |
</p> |
| 312 |
<p style="margin-top:0px;margin-bottom:10px;"> |
| 313 |
Margin below this paragraph. No margin above. |
| 314 |
</p> |
| 315 |
<p>lorem ipsum</p> |
| 316 |
|
| 317 |
<h3>Other document formatting</h3> |
| 318 |
|
| 319 |
A horizontal line: |
| 320 |
<hr /> |
| 321 |
<p> |
| 322 |
A line with<sup>superscript</sup> and<sub>subscript</sub>. |
| 323 |
</p> |
| 324 |
|
| 325 |
</html> |