Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <title>
  4. LAB : Sheikh Mohammad Motiur Rahman(MMR)
  5. </title>
  6. <head></head>
  7. <body>
  8. <p><b>below</b><!--b for text bold--></br>
  9. <i>are</i><!--i for text italic--></br>
  10. <u>the</u><!--u for underline--></br>
  11. <strike> some </strike> <del> of</del><!--strike/del for text strike--></br>
  12.  
  13. <small>the example for text formatting:</small>
  14. <big>series :</big>
  15. X<sub>1</sub>,X<sub>2</sub>,X<sub>3</sub>,X<sub>4</sub>,....,X<sub>n</sub></br>
  16. <big>another series:</big>
  17. X<sup>1</sup>,X<sup>2</sup>,X<sup>3</sup>,X<sup>4</sup>,....,X<sup>n</sup>
  18.  
  19. <! Text Formatting >
  20. <p> This is <b>bold</b> text </p>
  21. <p>this is <strike>striked</strike> text </P>
  22. <p>this is <sub>subscription</sub> text </p>
  23.  
  24. <!--Unorder List-->
  25. <ul type="circle">
  26. <li>item one</li>
  27. <li>item two</li>
  28. <li>item three</li>
  29.  
  30. </ul>
  31. <ul type="square">
  32. <li>item one</li>
  33. <li>item two</li>
  34. <li>item three</li>
  35.  
  36. </ul>
  37.  
  38. <ol type ="A">
  39. <li>item one</li>
  40. <li>item two</li>
  41. <li>item three</li>
  42.  
  43. </ol>
  44.  
  45. <form>
  46. <input type="radio" name="gender" value="male"/> Male </br>
  47. <input type="radio" name="gender" value="female"/> Female </br> </br> </br>
  48. <input type="checkbox" name="male" value="male"/> Male </br>
  49. <input type="checkbox" name="female" value="female"/> Female </br> </br>
  50.  
  51. <input type ="text" name="name" required placeholder="Enter your name"/> </br> </br>
  52. <input type ="text" name="name" readonly placeholder="This field is read only"/> </br>
  53. <input type ="text" name="name" hidden /> </br>
  54. <input type ="text" name="name" disabled placeholder="Enter your name"/> </br> </br>
  55.  
  56. <select>
  57. <option value="" selected> Select One </option>
  58. <option value="one"> Item one </option>
  59. <option value="two"> Item two </option>
  60. <option value="three"> Item three </option>
  61. </select> </br> </br>
  62.  
  63. <select multiple>
  64. <option value="" selected> Select One </option>
  65. <option value="one"> Item one </option>
  66. <option value="two"> Item two </option>
  67. <option value="three"> Item three </option>
  68. </select> </br> </br>
  69.  
  70. <input type ="button" value="Alert" onclick="JSEvent(1)"/> </br>
  71. <input type ="button" value="Input" onclick="JSEvent(2)"/> </br>
  72. <button value ="confirm" onclick="JSEvent(3)">Confirm</button> </br>
  73. <input type="file" /> </br>
  74. <span id="message" </span>
  75.  
  76.  
  77. </form>
  78. <script type ="text/javascript">
  79. function JSEvent(param){
  80. if(param == 1){alert("alert box");}
  81.  
  82. else if(param == 2){prompt("Enter Input");}
  83.  
  84. else if(param == 3){if (confirm("Are you sure?")){
  85. document.getElementById("message").innerHTML="<span style='color:green;'>Confirmed</span>";
  86. }else{document.getElementById("message").innerHTML="<span style='color:red;'>Not confirmed</span>";}
  87.  
  88. }
  89.  
  90. }
  91.  
  92. </script>
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. </body>
  116. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement