In this tutorial you will learn how to create links to other pages and sites as well as how to add images to your pages.
First let's look at hyperlinks. Often images and hyperlinks are used in conjunction with each other. Below is the code for a hyperlink:
Code :
Output:
That is the basic structure of the hyperlink. Whatever is in between the speech marks after href parameter is where the site will link too. If it's linking to a page on your site you can just use a filepath like above, you could also link it to google using the full URL.
Now to tackle images. Below is the basic structure of an image:
Code :
Output:![]()
The image destination, or source, is defined using the src parameter. The alt parameter will define what text is displayed when you hover over the image. We can use images and hyperlinks together to make an image link to another page, this is how:
Code :
Output:
So that concludes another tutorial but in the next tutorial we will cover tables!
To post comments you must sign in to your account below!
If you do not currently have an account click here to create one now!