year 2018
Q.no 11 Checkout question from question section.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<!DOCTYPEhtml> <html> <head> <title></title> <styletype="text/css"> * { box-sizing:border-box; } . a { height:100px; width:1000px; border:2pxsolidblack; display:block; /*float:left;*/ } . b { display:block; border:2pxsolidblack; height:300px; width:250px; float:left; } </style> </head> <body> <divclass="a"><h1>HeaderGoesHere</h1></div> <divclass="b">b</div> <divclass="c">c</div> <divclass="d">d</div> <divclass="e">d</div> </body> </html> |
Q.no 12 . Write a source code to create the login form that contains a textbox for username, a textbox for password and a submit button. Make the following validations (both username and password isrequired and cannot be the same and length should be greater than 5 characters long).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<!DOCTYPEhtml> <html> <head> <title></title> </head> <body> UserName<inputtype="text"id="username"><br> Password<inputtype="password"id="password"><br> <inputtype="submit"onclick="validate();"> <scripttype="text/javascript"> functionvalidate() { varx=document.getElementById('username').value; vary=document.getElementById('password').value; varisSuccess=1; } </script> </body> </html> |
Q.no 13 Write a complete XHTML code to demonstrate a nested table.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<!DOCTYPEhtml> <html> <head> <title></title> </head> <body> <tableborder="1"cellspacing="0"cellpadding="10"> <tr> <td>a</td> <td>b</td> <td>c</td> <td>d</td> </tr> // BIm Study Notes <tr> <td>e</td> <td>f</td> <tdcolspan="2">g</td> </tr> <tr> <td>h</td> <tdcolspan="3"> <tableborder="1"cellspacing="0"cellpadding="20"> <tr> <td>nestedone</td> <td>nestedtwo</td> <td>nestedthree</td> </tr> </table> </body> </html> |
Q.no 15 Write a complete XHTML source code to create a web form that contains a textbox, a text area, a select box, radio buttons, checkboxes, a submit button and a radio button.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<!DOCTYPEhtml> <html> <head> <title></title> </head> <body> <form> Text<br/> <inputtype="text"/><br/> TextArea<br/> <textarea> </textarea><br/> <hr/> ChooseCountry <select> </select> <hr/> Gender <inputtype="radio"name="gender"/>Male <inputtype="radio"name="gender"/>Female <hr/> <inputtype="checkbox"/>Singing <inputtype="checkbox"/>Dancing <inputtype="checkbox"/>Travelling <hr/> <inputtype="submit"/> </form> </body> </html> |