From the course: HTML for Educators
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating an email link - HTML Tutorial
From the course: HTML for Educators
Creating an email link
- [Instructor] Let's create a link that automatically opens the student's email program and addresses an email to you. I'm in contact at html and let's use my email address here for the target at the link. Create an opening anchor tag with an href attribute set equal to quote our destination. Just like we've done several times already. Now we need to prefix the email address that we want to send the mail to with the phrase "mail to" colon and then enter the email address. I'll type in chris@stateu.org. Then close the quote and close the anchor tag. Now save your page and let's test our link. When you click on the link, it automatically opens a new email message addressed to you from the user's default email program. To take this one step further, if you go back to your code, inside of the href attribute at the end of your email address but before the closing lines, type in question mark, subject equals, then enter what you want the default subject line to be. I'll enter env432 colon…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.