HTML tags for email and links to other sections on the page

I am writing an HTML page and my requirements are as follows:

  • The HTML page contains some email id and when you click on these email id ... it should open a new Outlook page.

  • The page has certains sections and when you click on it. she should refer to a respected paragraph / section. Example: click a link to go to the section ....

Thanks in advance...

+3
source share
4 answers

For link to email address

<a href="mailto:youremailaddress">Email Me</a> 

to navigate links

http://www.w3schools.com/html/html_links.asp

: http://www.yourhtmlsource.com/text/internallinks.html

+2

:

<a href="#sectionId">Go to X</a>

<h2 id="sectionId">X</h2>

, , , , DIV - .

+1

Try to find the tag (Anchor). You will get what you need ... mailto will have enough of your email needs, and hash tags will solve the second.

0
source

This should do it:

<a href="mailto:you@yourdomain.com">Email</a> 

This should open a new window on your mail client (appearance or everything that you installed).

0
source

Source: https://habr.com/ru/post/1745759/


All Articles