Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Use an Image as a Link

To make an image into a link, simply enclose the <img> tag within the <a> tag.

<a href=”default.asp”>
<img src=”smiley.gif” alt=”HTML tutorial” style=”width:42px;height:42px;”>
</a>

Link to an Email Address

To generate a link that opens the user’s email program to compose a new email, include “mailto:” within the href attribute.

<a href=”mailto:[email protected]>Send email</a>

Click to Learn

Button as a Link

JavaScript is used to turn an HTML button into a link by defining actions for events like button clicks.

<button onclick=”document.location=’default.asp'”>HTML Tutorial</button>

 

Click to Learn