Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<!DOCTYPE html> <html> <body> <p>An ordered list:</p> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> <p>An unordered list:</p> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> </body> </html>
Output;An ordered list: 1. Coffee 2. Tea 3. Milk An unordered list: Coffee Tea Milk
</html>
Output:-
<form action="demo_form.asp"> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> <input type="submit" value="Submit"> </form>
<p>Click the "Submit" button and the form-data will be sent to a page on the server called .</p>
</body> </html>
Click the "Submit" button and the form-data will be sent to a page on the server called.
Output:-
<body> <h1>This is heading 1</h1> <p>This is an ordinary paragraph. Notice that this text is red. The default text-color for a page is defined in the body selector.</p> <p class="ex">This is a paragraph with class="ex". This text is blue.</p> </body> </html>
Output:-
This is heading 1
This is an ordinary paragraph. Notice that this text is red. The default text-color for a page is defined in the body selector. This is a paragraph with class="ex". This text is blue.
<body> <p class="normal">This is a paragraph, normal.</p> <p class="italic">This is a paragraph, italic.</p> <p class="oblique">This is a paragraph, oblique.</p> </body>
</html>
</tr> </table> <p><b>Note:</b> If a !DOCTYPE is not specified, the border-collapse property can produce unexpected results in IE8 and earlier versions.</p> </body> </html>
Output:Firstname Lastname Peter Griffin Lois Griffin Note: If a !DOCTYPE is not specified, the border-collapse property can produce unexpected results in IE8 and earlier versions.
<p><b>Note:</b> The "border-width" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> </body> </html>
Output:Some text. Some text. Some text. Note: The "border-width" property does not work if it is used alone. Use the "border-style" property to set the borders first.
</body> </html>
<script> function myFunction(name,job) { alert("Welcome " + name + ", the " + job); } </script>
</body> </html>
Output:-
<p id="demo"></p>
<script> function myFunction() { var x=""; var time=new Date().getHours(); if (time<10) { x="Good morning"; } else if (time<20) { x="Good day"; } else { x="Good evening"; }
document.getElementById("demo").innerHTML=x; } </script>
</body> </html>
Output:-
<script> function myFunction() { var x="",i=0; while (i<5) { x=x + "The number is " + i + "<br>"; i++; } document.getElementById("demo").innerHTML=x; } </script>
</body> </html>
Output:-
<p id="demo"></p>
<script> function myFunction() { var x; var d=new Date().getDay(); switch (d) { case 6: x="Today it's Saturday"; break; case 0: x="Today it's Sunday"; break; default: x="Looking forward to the Weekend"; } document.getElementById("demo").innerHTML=x; }
</script>
</body> </html>
Output:-
<body> <form name="myForm" onsubmit="return validateForm()" method="post"> First name: <input type="text" name="fname"> <input type="submit" value="Submit"> </form> </body>
</html>
Output:
Output:-
Output:-
Output:-
Output:-
S.no. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
PROGRAM NAME
Signature
Write HTML code to Li tag . Write HTML code to implement Table tag. Write a HTML code to implement img tag. Write a HTML code to implement Frame. Write a HTML code to implement Form.
Write a CSS code to implement Background property.
Write a CSS code to implement Text property. Write a CSS code to implement Font property. Write a CSS code for Table. Write a CSS code for Border. Write a javascript code for output statement.
Write a javascript code for Function implementation. Write a javascript code to implement if else statement .
18 19 20
Write PHP code to implement print statement . Write PHP code to implement string. Write PHP code to implement Function. Write PHP code to implement Array.