Share
, ,

HTML5 Structure at a Glance

HTML5


  1. <html> 
  2. <!DOCTYPE HTML> 
  3. <head> 
  4. <title>Mohammad Luin</title> 
  5. </head>
  6. <body bgcolor="#FFFFFF"> 

  7. <h1><font color="#000099">Heading one with color Blue</font></h1>
  8. <h2>Heading two</h2>
  9. <h3>Heading three</h3>
  10. <h4>Heading four</h4>
  11. <h5>Heading five</h5>   
  12. <h6>Heading six</h6>

  13. <hr width="700px"/>

  14. <!--Writing article with a Heading and Section including Aside text-->
  15. <article>
  16. <h3 align="center">WELCOME!</h3><br/>
  17. <section>
  18. <h4 align="center">This is a section Head</h4><br/>
  19. <p align="center">The is a test article for the test Heading</p><br/>
  20. </section>
  21. <aside>
  22. <p>This is a aside text</p>
  23. </aside>
  24. </article>

  25. <!--Ordering list-->
  26. <ol>
  27. <li>Black</li>
  28. <li>Blue</li>
  29. <li>Green</li>
  30. </ol>

  31. <!--UnOrdering list-->
  32. <ul>
  33. <li>Black</li>
  34. <li>Blue</li>
  35. <li>Green</li>
  36. </ul>

  37. <p align="center">This text is aligned to center<br/><hr width="100%" align="center"/></p>

  38. <!--Different Text Format-->
  39. <p><b>This is a bold text example</b></p>
  40. <p><big>This is a big text example</big></p>
  41. <p><i>This is an italic text example</i></p>
  42. <p><small> This is a small text example</small></p>
  43. <p><sub>This is a subscripted text example</sub></p>
  44. <p><sup>This is a superscripted text example</sup></p>
  45. <p><ins>This is an intserted text example</ins></p>
  46. <p><del>This is a deleted text example</del></p>

  47. <!--Image Inserting Process-->
  48. <img src="neg_fox.jpg" hight="100px" width="100px" border="1px black" alt=""/>
  49. <img src="image.svg" alt="" hight="300"><br/>
  50. <svg width="2000" hight="2000">
  51. <circle cx="80" cy"80" r="50" fill="green"/>
  52. <rect width="300" hight="100" x="20" y="20" fill="yellow"/>
  53. </svg><br/>
  54. <svg width="500" hight="500">
  55. <path d="M0 0 L0 100 L100 100 L100 0 Z"/>
  56. </svg>

  57. <!--Link Inserting Option-->
  58. <a href="http://mluin.blogspot.com" target="_blank">mLuin's Tech Knowledge</a>

  59. <!--Table creation-->
  60. <table align="center" border="3">
  61. <tr>
  62. <td bgcolor="red">RED</td>
  63. <td bgcolor="yellow">YELLOW</td>
  64. <td bgcolor="green">GREEN</td>
  65. </tr>
  66. <tr>
  67. <td>Stop</td>
  68. <td colspan="2">Wait & Go</td>
  69. </tr>
  70. </table>

  71. <!--Form Creation-->
  72. <form>
  73. <lable>Your name</lable>
  74. <input id="user" name="username" type="text"/>
  75. </form><br/>

  76. <!--Hint-->
  77. <form>
  78. <lable for="email">Your email address</lable>
  79. <input type="text" name="email" placeholder="example@gmail.com"/>
  80. </form><br/>

  81. <!--Autofocus-->
  82. <form>
  83. <lable for="email">Your email address</lable>
  84. <input type="text" name="email" autofocus/>
  85. </form><br/>

  86. <!--Sample form-->
  87. <form autocomplete="off">
  88. <lable for="email">Your email address:</lable>
  89. <input name="Email" type="text" required/>
  90. <input type="submit" value="Submit"/>
  91. </form>

  92. <form action="http://mluin.blogspot.com" method="GET/POST">
  93. <!--Input type 1(General Password)-->
  94. <input type="text" name="username"/>Username<br/>
  95. <input type="password" name="password"/>Password<br/>

  96. <!--Input type 2(Radio)-->
  97. <input type="radio" name="gender" value="male"/>Male<br/>
  98. <input type="radio" name="gender" value="female"/>Female<br/>

  99. <!--Input type 3(Check box)-->
  100. <input type="checkbox" name="gender" value="1"/>Male<br/>
  101. <input type="checkbox" name="gender" value="2"/>Female<br/>

  102. <!--Submit option-->
  103. <input type="submit" value="Submit"/>
  104. </form>

  105. <!--Audio file insert-->
  106. <audio src="image.mp3" controls>
  107. Your browser doesnt support audio files
  108. </audio>
  109. <audio controls autoplay loop>
  110. <source src="audio.mp3" type="audio/mpeg">
  111. <source src="audio.ogg" type="audio/ogg">
  112. Audio elements not supported by your browser
  113. </audio><br/>

  114. <!--Video file insert-->
  115. <video controls autoplay loop>
  116. <source src="video.mp4" type="video/mpeg">
  117. <source src="video.ogg" type="video/ogg">
  118. Audio elements not supported by your browser
  119. </video>

  120. <br/>

  121. <!--Inserting Progress bar-->
  122. <progress min="0" max="100" value="35"></progress><br/>

  123. <!--Insert Search Box-->
  124. <input id="mysearch" name="searchitem" type="search"/><br/>

  125. <!--Options In Search Box-->
  126. <form>
  127. <input id="car" type="text" list="colors"/>
  128. <datalist id="colors">
  129. <option value="RED">
  130. <option value="YELLOW">
  131. <option value="GREEN">
  132. </datalist>
  133. </form></br>

  134. <svg width="100" hight="100">
  135. <line x1="50" y1="0" x2=>


  136. </body>
  137. </html>

Notice:
To see the effect or meaning of each line of these codes copy codes from 1 to 164 and paste it in a notepad and save the file as .html file, then open the file in your browser.

0 comments:

Post a Comment