问题
I am writing a HTML page and my requirements are as follows:
HTML Page contains some email ID's and when clicked on those EmailID's... it should open new page of the outlook.
Page has certains sections and when clicked on that.. it should reach out to the respected paragraph/section. Ex: click to Link to go to the .... section
Thanks in advance...
回答1:
For email address link
<a href="mailto:youremailaddress">Email Me</a>
fore link navigation
http://www.w3schools.com/html/html_links.asp
more about navigation with in page : http://www.yourhtmlsource.com/text/internallinks.html
回答2:
Linking to sections:
<a href="#sectionId">Go to X</a>
<h2 id="sectionId">X</h2>
This way you can link to anything that has an ID, be it a header, a paragraph, a DIV or anything else.
回答3:
Try looking at tag (Anchor). You'll get what you need... mailto will suffice your e-mail needs and hash tags will solve the second one.
回答4:
This should do it:
<a href="mailto:you@yourdomain.com">Email</a>
This should open the new window on your email client (outlook or whatever you have set).
来源:https://stackoverflow.com/questions/2847946/html-tags-for-email-and-link-to-other-sections-on-page