Reputation: 1249
I'm working on my portfolio and i've added an email with mailto like this
<a id="contact-email" href="mailto:[email protected]"><h3>Email: [email protected]</h3></a>
It works if i paste it inside www.w3schools.com "try it yourself" but when i'm trying to test it on my webpage it doesn't work
What can cause this problem?
Upvotes: 0
Views: 1221
Reputation: 1249
Ok i found the problem, apperently it doesn't work when working locally, when i've uploaded it on my website it worked correctly
Upvotes: 1
Reputation: 2675
The a
tag should be inside the h3
like this:
<h3><a id="contact-email" href="mailto:[email protected]">Email : [email protected]</a></h3>
Upvotes: 1