HTML/CSS/Basic Tags/Anchor Email
Содержание
Adding email hyperlinks
<source lang="html4strict">
<?xml version = "1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head> <title>Internet and WWW How to Program - Contact Page </title> </head> <body>
My email address is <a href = "mailto:d@d.ru"> d@d.ru </a> Click the address and your browser will open an e-mail message and address it to me.
</body>
</html>
</source>
A link to send an email
<source lang="html4strict">
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head>
<title>A link to send an email</title>
</head> <body>
<a href="mailto:name@example.ru">name@example.ru</a>
</body> </html>
</source>
Email link with CC and BCC
<source lang="html4strict">
<html> <body>
This is another mailto link: <a href="mailto:someone@google.ru?cc=someoneelse@yahoo.ru&bcc=andsomeoneelse2@ea.ru&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">Send mail!</a>
Note: Spaces between words should be replaced by %20 to ensure that the browser will display your text properly.
</body> </html>
</source>
Form to email
<source lang="html4strict">
<html> <body> <form action="MAILTO:someone@demo2s.ru" method="post" enctype="text/plain">
This form sends an e-mail to Demo2s.
Name:
<input type="text" name="name"
value="yourname" size="20">
Mail:
<input type="text" name="mail"
value="yourmail" size="20">
Comment:
<input type="text" name="comment"
value="yourcomment" size="40">
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
</source>
Set the subject to be XHTML
<source lang="html4strict">
<a href="mailto:info@example.org?subject=XHTML"> specify more than one property by separating them using ampersands <a href="mailto:info@example.org?subject=XHTML&cc=sales@example.org"></a> A full list of properties you can add like this:subject, body, cc, bcc
</source>