Wednesday, 18 July 2012
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>
<p>A browser without support for JavaScript will show the text in the noscript element.</p>
</body>
</html>
Wednesday, 18 July 2012 by Unknown · 0
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
document.write("Hello india!")
</script>
</body>
</html>
by Unknown · 0
Example to Specify a title for a document in html
<!DOCTYPE html>
<html>
<head>
<title>My first HTML page</title>
</head>
<body>
<p>The content of the body element is displayed in the browser.</p>
<p>The content of the title element is displayed in the browser's title.</p>
</body>
</html>
by Unknown · 0
Example to create inline frame using html
<!DOCTYPE html>
<html>
<body>
<iframe src="http://collegeprojectandtests.blogspot.in/"></iframe>
<p>Some browsers don't support iframes.</p>
<p>If they don't, the iframe will not be visible.</p>
</body>
</html>
Result:
<!DOCTYPE html>
<html>
<body>
<iframe src="http://collegeprojectandtests.blogspot.in/"></iframe>
<p>Some browsers don't support iframes.</p>
<p>If they don't, the iframe will not be visible.</p>
</body>
</html>
Result:
Some browsers don't support iframes.
If they don't, the iframe will not be visible.
by Unknown · 0
Example to create email form using html
<!DOCTYPE html>
<html>
<body>
<h3>Send e-mail to someone@example.com:</h3>
<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">
Name:<br />
<input type="text" name="name" value="your name" /><br />
E-mail:<br />
<input type="text" name="mail" value="your email" /><br />
Comment:<br />
<input type="text" name="comment" value="your comment" size="50" />
<br /><br />
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h3>Send e-mail to someone@example.com:</h3>
<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">
Name:<br />
<input type="text" name="name" value="your name" /><br />
E-mail:<br />
<input type="text" name="mail" value="your email" /><br />
Comment:<br />
<input type="text" name="comment" value="your comment" size="50" />
<br /><br />
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
Result:
Send e-mail to someone@example.com:
by Unknown · 0
Subscribe to:
Posts (Atom)