Powered By Blogger

Friday 12 September 2014

How are adding Links to Web Pages ?

A link is called an anchor in HTML, and so the tag to represent it is the A tag. When you add a link, you must point to the web page address that you want your users to go to when they click the link. You specify this with the href attribute.

The href attribute stands for “hypertext reference” and it's value is the URL where you want your link to go to.
For example,
to create a text link below :-
<a href="URL of the web page where u want to go">Text of the link</a>
Next example :- 
<a href="http://example.com">About example</a> 

one important question-
what is <a> ?
ans- 
The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

-The </a> tag is required. If you forget to include it, everything following that link will also be linked, until another link closes the tag.

Tuesday 9 September 2014

How to create an email form that can send email using html


<html>
<body>

<h2>Send e-mail to someone@example.com:</h2>

<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name" value="your name"><br>
Desination:<br>
<input type="text" name="comment" value="your comment" size="50"><br>
E-mail:<br>
<input type="text" name="mail" value="your email"><br>

<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>

</body>
</html>