2. HTML LINKS – HYPERLINKS
Html links are hyperlinks.
You can click on a link and jump to another document.
When you move the mouse over a link, the mouse arrow will
turn into a little hand.
3. HTML LINKS - SYNTAX
• The HTML <a> tag defines a hyperlink. It has the following
syntax:
<a href=“url”>link text</a>
The link text is the part that will be visible to the reader.
Clicking on the link text, will send the reader to the specified
URL address.
5. HTML IMAGES SYNTAX
The HTML <img> tag is used to embed an image in a web page.
Images are not technically inserted into a web page; images are linked to web pages.
The <img> tag creates a holding space for the referenced image.
The <img> tag is empty, it contains attributes only, and does not have a closing tag.
The <img> tag has two required attributes:
src - Specifies the path to the image.
alt – Specifies an alternate text for the image.
6. SYNTAX
<img src=“url” alt=“alternatetext”>
•The required src attribute specifies the path (URL)
to the image.
7. IMAGES AS A LINK
To use an image as a link, put the <img> tag inside the <a> tag;