| 1 |
# Inline HTML |
| 2 |
|
| 3 |
## Comments |
| 4 |
|
| 5 |
<!--comment--> |
| 6 |
|
| 7 |
<!-- |
| 8 |
|
| 9 |
**bigger** |
| 10 |
|
| 11 |
comment |
| 12 |
|
| 13 |
--> |
| 14 |
|
| 15 |
## Void elements |
| 16 |
|
| 17 |
<map name="my-map"> |
| 18 |
<area shape="rect" coords="0,0,10,20" href="https://example.com/" alt="alt text"> |
| 19 |
</map> |
| 20 |
|
| 21 |
Line<br>break |
| 22 |
|
| 23 |
Word<wbr>break |
| 24 |
|
| 25 |
<table> |
| 26 |
<colgroup> |
| 27 |
<col> |
| 28 |
<col span="2" class="a"> |
| 29 |
</colgroup> |
| 30 |
</table> |
| 31 |
|
| 32 |
<embed |
| 33 |
type="image/jpeg" |
| 34 |
src="/image.jpg" |
| 35 |
width="100" |
| 36 |
height="200"> |
| 37 |
|
| 38 |
Rule: |
| 39 |
<hr> |
| 40 |
|
| 41 |
<img src="example.jpg"> |
| 42 |
|
| 43 |
<input type="text"> |
| 44 |
|
| 45 |
<link href="example.css" rel="stylesheet"> |
| 46 |
|
| 47 |
<meta name="example" |
| 48 |
content="Example content"> |
| 49 |
|
| 50 |
<video> |
| 51 |
<source src="video.webm" type="video/webm"> |
| 52 |
<track kind="captions" src="captions.vtt" srclang="en"> |
| 53 |
</video> |
| 54 |
|
| 55 |
## Blocks |
| 56 |
|
| 57 |
<div> |
| 58 |
A block HTML element trying to do *markup*. |
| 59 |
</div> |
| 60 |
|
| 61 |
<div> |
| 62 |
|
| 63 |
A block HTML with spaces that **cause** it to be interleaved with markdown. |
| 64 |
|
| 65 |
</div> |
| 66 |
|
| 67 |
## Scripts |
| 68 |
|
| 69 |
<script></script> |
| 70 |
|
| 71 |
<script async src="foo.js"></script> |
| 72 |
|
| 73 |
<script> |
| 74 |
const x = 'some *text* inside'; |
| 75 |
|
| 76 |
*don't* < try to "parse me |
| 77 |
</script> |
| 78 |
|
| 79 |
## Style |
| 80 |
|
| 81 |
<style> |
| 82 |
|
| 83 |
.foo { |
| 84 |
background-color: red; |
| 85 |
} |
| 86 |
|
| 87 |
/* **don't** < try to "parse me |
| 88 |
*/ |
| 89 |
|
| 90 |
</style> |
| 91 |
|
| 92 |
<style media="(width < 500px)"> |
| 93 |
.bar { background-color: green } |
| 94 |
</style> |
| 95 |
|
| 96 |
## Manual headers |
| 97 |
|
| 98 |
<h2 id="my header"><a href="#foo">My Header</a></h2> |
| 99 |
|
| 100 |
<h3>Another header</h3> |