Return styles to browser defaults.

index.html 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <html>
  2. <head>
  3. <style>
  4. body {
  5. background-color: cornsilk;
  6. }
  7. p, input, label, select, ul, ol, code, pre, blockquote, button, table, hr, details, summary, em, strong, i, b, q,
  8. s, small, span, a, h1, h2, h3, h4, h5, h6 {
  9. background-color: pink;
  10. color: black;
  11. font-family: monospace;
  12. margin: 10px;
  13. }
  14. </style>
  15. <link rel="stylesheet" type="text/css" href="../dist/example.min.css">
  16. </head>
  17. <body>
  18. <div>
  19. <p>These are elements affected by the global styling on this page.</p>
  20. <p>
  21. <em>Emphasized</em> <strong>strong</strong> <i>italic</i> <b>bold</b> <q>quoted</q> <s>strikethrough</s>
  22. <small>small</small>
  23. </p>
  24. <span>Span</span><br>
  25. <a href="https://github.com/thallada/default-stylesheet">Link</a><br>
  26. <h1>Heading 1</h1>
  27. <h2>Heading 2</h2>
  28. <h3>Heading 3</h3>
  29. <h4>Heading 4</h4>
  30. <h5>Heading 5</h5>
  31. <h6>Heading 6</h6>
  32. <label><input type="checkbox"> A checkbox</label><br>
  33. <input type="button" value="A button"><br>
  34. <input type="textarea" value="Example text"><br>
  35. <select>
  36. <option value="1">Option 1</option>
  37. <option value="2">Option 2</option>
  38. <option value="3">Option 3</option>
  39. </select>
  40. <ul>
  41. <li>One</li>
  42. <li>Two</li>
  43. </ul>
  44. <ol>
  45. <li>One</li>
  46. <li>Two</li>
  47. </ol>
  48. <code>function () { console.log('Hello, world!'); }</code><br>
  49. <pre>preformatted</pre><br>
  50. <blockquote>"This is a blockquote!"</blockquote>
  51. <table>
  52. <tr>
  53. <th>Category 1</th>
  54. <th>Category 2</th>
  55. </tr>
  56. <tr>
  57. <td>0.34</td>
  58. <td>1.12</td>
  59. </tr>
  60. </table>
  61. <hr>
  62. <details open>
  63. <summary>Summary</summary>
  64. <ol>
  65. <li>Item 1</li>
  66. <li>Item 2</li>
  67. <li>Item 3</li>
  68. </ol>
  69. </details>
  70. <button>Button!</button>
  71. </div>
  72. <div id="embedded" class="embedded">
  73. <div class="embedded-wrapper">
  74. <p>This is an embedded component isolated from the surrounding CSS cascade.</p>
  75. <p>
  76. <em>Emphasized</em> <strong>strong</strong> <i>italic</i> <b>bold</b> <q>quoted</q> <s>strikethrough</s>
  77. <small>small</small>
  78. </p>
  79. <span>Span</span><br>
  80. <a href="https://github.com/thallada/default-stylesheet">Link</a><br>
  81. <h1>Heading 1</h1>
  82. <h2>Heading 2</h2>
  83. <h3>Heading 3</h3>
  84. <h4>Heading 4</h4>
  85. <h5>Heading 5</h5>
  86. <h6>Heading 6</h6>
  87. <label><input type="checkbox"> A checkbox</label><br>
  88. <input type="button" value="A button"><br>
  89. <input type="textarea" value="Example text"><br>
  90. <select>
  91. <option value="1">Option 1</option>
  92. <option value="2">Option 2</option>
  93. <option value="3">Option 3</option>
  94. </select>
  95. <ul>
  96. <li>One</li>
  97. <li>Two</li>
  98. </ul>
  99. <ol>
  100. <li>One</li>
  101. <li>Two</li>
  102. </ol>
  103. <code>function () { console.log('Hello, world!'); }</code><br>
  104. <pre>preformatted</pre><br>
  105. <blockquote>"This is a blockquote!"</blockquote>
  106. <table>
  107. <tr>
  108. <th>Category 1</th>
  109. <th>Category 2</th>
  110. </tr>
  111. <tr>
  112. <td>0.34</td>
  113. <td>1.12</td>
  114. </tr>
  115. </table>
  116. <hr>
  117. <details open>
  118. <summary>Summary</summary>
  119. <ol>
  120. <li>Item 1</li>
  121. <li>Item 2</li>
  122. <li>Item 3</li>
  123. </ol>
  124. </details>
  125. <button>Button!</button>
  126. </div>
  127. </div>
  128. </body>
  129. </html>