Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <title>
- LAB : Sheikh Mohammad Motiur Rahman(MMR)
- </title>
- <head></head>
- <body>
- <p><b>below</b><!--b for text bold--></br>
- <i>are</i><!--i for text italic--></br>
- <u>the</u><!--u for underline--></br>
- <strike> some </strike> <del> of</del><!--strike/del for text strike--></br>
- <small>the example for text formatting:</small>
- <big>series :</big>
- X<sub>1</sub>,X<sub>2</sub>,X<sub>3</sub>,X<sub>4</sub>,....,X<sub>n</sub></br>
- <big>another series:</big>
- X<sup>1</sup>,X<sup>2</sup>,X<sup>3</sup>,X<sup>4</sup>,....,X<sup>n</sup>
- <! Text Formatting >
- <p> This is <b>bold</b> text </p>
- <p>this is <strike>striked</strike> text </P>
- <p>this is <sub>subscription</sub> text </p>
- <!--Unorder List-->
- <ul type="circle">
- <li>item one</li>
- <li>item two</li>
- <li>item three</li>
- </ul>
- <ul type="square">
- <li>item one</li>
- <li>item two</li>
- <li>item three</li>
- </ul>
- <ol type ="A">
- <li>item one</li>
- <li>item two</li>
- <li>item three</li>
- </ol>
- <form>
- <input type="radio" name="gender" value="male"/> Male </br>
- <input type="radio" name="gender" value="female"/> Female </br> </br> </br>
- <input type="checkbox" name="male" value="male"/> Male </br>
- <input type="checkbox" name="female" value="female"/> Female </br> </br>
- <input type ="text" name="name" required placeholder="Enter your name"/> </br> </br>
- <input type ="text" name="name" readonly placeholder="This field is read only"/> </br>
- <input type ="text" name="name" hidden /> </br>
- <input type ="text" name="name" disabled placeholder="Enter your name"/> </br> </br>
- <select>
- <option value="" selected> Select One </option>
- <option value="one"> Item one </option>
- <option value="two"> Item two </option>
- <option value="three"> Item three </option>
- </select> </br> </br>
- <select multiple>
- <option value="" selected> Select One </option>
- <option value="one"> Item one </option>
- <option value="two"> Item two </option>
- <option value="three"> Item three </option>
- </select> </br> </br>
- <input type ="button" value="Alert" onclick="JSEvent(1)"/> </br>
- <input type ="button" value="Input" onclick="JSEvent(2)"/> </br>
- <button value ="confirm" onclick="JSEvent(3)">Confirm</button> </br>
- <input type="file" /> </br>
- <span id="message" </span>
- </form>
- <script type ="text/javascript">
- function JSEvent(param){
- if(param == 1){alert("alert box");}
- else if(param == 2){prompt("Enter Input");}
- else if(param == 3){if (confirm("Are you sure?")){
- document.getElementById("message").innerHTML="<span style='color:green;'>Confirmed</span>";
- }else{document.getElementById("message").innerHTML="<span style='color:red;'>Not confirmed</span>";}
- }
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement