More about links (with the band)The links to the four pages will all be similar and will be of the form... There will be three other links like the above one... We also have to remember the link to the bands email address. An email address link is slightly different. You still use the <a> tag and the "href" attribute. You set the "href" attribute to link to your email address. A few examples will show you how this is done. The link I will put on the bands homepage will be... Each of the other pages will also have links. They will each have links to the other three pages and the home page. They will also each have a link to the email address as shown above. The "Picture Gallery" however will have to be a little different. I decided the best idea would be to show thumbnails of the images (smaller versions) and have each thumbnail link to the bigger version of that picture. This is much easier than it may sound. After I have created all the images and saved them in the same folder as "pictures.html" it is time to get down to writing the html code. Currently the band only has three pictures. I have called the pictures "band_1.jpg", "band_2.jpg" and "band_3.jpg". I have called the thumbnails "thumb_1.jpg", "thumb_2.jpg" and "thumb_3.jpg". The following line of html will place one of the thumbnails on the page and link it to the bigger version... I have created a link to "band_1.jpg" the same as I would any html file. In fact this is the way to put a link to any type of file, be it a html file an image , a wave sound or anything else. Between the <a> and </a> i then placed an <img> tag, discussed in a previous article. The "src" attribute should be familiar but the "border" may not. The "src" sets the image that will be displayed and "border" sets the width of the
The copyright of the article More about links (with the band) in HTML Lessons is owned by Oisin Prendiville. Permission to republish More about links (with the band) in print or online must be granted by the author in writing.
Articles in this Topic
Discussions in this Topic
|