sample.html.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE HTML>
  2. <!--Example of comments in HTML-->
  3. <html>
  4. <head>
  5. <!--This is the head section-->
  6. <title>HTML Sample</title>
  7. <meta charset="utf-8">
  8. <!--This is the style tag to set style on elements-->
  9. <style type="text/css">
  10. h1
  11. {
  12. font-family: Tahoma;
  13. font-size: 40px;
  14. font-weight: normal;
  15. margin: 50px;
  16. color: #a0a0a0;
  17. }
  18. h2
  19. {
  20. font-family: Tahoma;
  21. font-size: 30px;
  22. font-weight: normal;
  23. margin: 50px;
  24. color: #fff;
  25. }
  26. p
  27. {
  28. font-family: Tahoma;
  29. font-size: 17px;
  30. font-weight: normal;
  31. margin: 0px 200px;
  32. color: #fff;
  33. }
  34. div.Center
  35. {
  36. text-align: center;
  37. }
  38. div.Blue
  39. {
  40. padding: 50px;
  41. background-color: #7bd2ff;
  42. }
  43. button.Gray
  44. {
  45. font-family: Tahoma;
  46. font-size: 17px;
  47. font-weight: normal;
  48. margin-top: 100px;
  49. padding: 10px 50px;
  50. background-color: #727272;
  51. color: #fff;
  52. outline: 0;
  53. border: none;
  54. cursor: pointer;
  55. }
  56. button.Gray:hover
  57. {
  58. background-color: #898888;
  59. }
  60. button.Gray:active
  61. {
  62. background-color: #636161;
  63. }
  64. </style>
  65. <!--This is the script tag-->
  66. <script type="text/javascript">
  67. function ButtonClick(){
  68. // Example of comments in JavaScript
  69. window.alert("I'm an alert sample!");
  70. }
  71. </script>
  72. </head>
  73. <body>
  74. <!--This is the body section-->
  75. <div class="Center">
  76. <h1>NAME OF SITE</h1>
  77. </div>
  78. <div class="Center Blue">
  79. <h2>I'm h2 Header! Edit me in &lt;h2&gt;</h2>
  80. <p>
  81. I'm a paragraph! Edit me in &lt;p&gt;
  82. to add your own content and make changes to the style and font.
  83. It's easy! Just change the text between &lt;p&gt; ... &lt;/p&gt; and change the style in &lt;style&gt;.
  84. You can make it as long as you wish. The browser will automatically wrap the lines to accommodate the
  85. size of the browser window.
  86. </p>
  87. <button class="Gray" onclick="ButtonClick()">Click Me!</button>
  88. </div>
  89. </body>
  90. </html>