HTML - Email example
HTML - Email exampleThere is not any specific tag for email in HTML. But with the help of HTML, we can easily add mail facility in our HTML page. HTML has a anchor tag with href attributes. The href attributes has the URL of another page. For sending mail, we can put "mailto:[email protected]" on the place of URL. If email client(Outlook Express, Netscape Messenger) already configured in user system, than it will be open automatically with receiver address.
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>HTML is a markup language</title> </head> <body> <h1>HTML email tag.</h1> <p>Please click on this link and send mail to me........</p> <p><a href="mailto:[email protected]">E-Mail To Me</a></p> </body> </html> |
