HTML Tags for email and link to other sections on page

寵の児 提交于 2019-12-23 21:32:11

问题


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

  1. HTML Page contains some email ID's and when clicked on those EmailID's... it should open new page of the outlook.

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!