Course support : You can ask your course questions in Learnem support forums .
Please support us by visiting our support forums and asking your questions and answering questions of others.
Registration: You can also register for paid web design email course. If you register you will benefit from strong one to one student support, personal tutor, more facilities, discount for other courses, access to students area and many more. Course fee for web page design email course is $15 only. Paid students will receive 13 advanced lessons in addition to 7 general lessons. You can register for paid course at:
Course Registration Here4-1 Links Any object such as text, graphic images etc. that leads us to a new page on the web is called a link. Links can point to a page on our site or to a web page on another site. In this lesson we will learn how to make links.
4-2 Text links
Creating a text link is an easy task. We will use <A> </A> tag to do this. As before we will need extra parameters from
this tag. Look at example below :
<HTML>
<HEAD>
<TITLE>Example 4-1</TITLE>
</HEAD>
<BODY>
<A HREF="http://www.yahoo.com">Click here to visit Yahoo</A> </BODY>
</HTML>
4-3 Image links
In previous section we used a text as a link point. It is possible to use an image instead of text. To do this, you must replace link text between <A> and </A> with an <IMG> tag that displays an image file.
<HTML>
<HEAD>
<TITLE>Example 4-1</TITLE>
</HEAD>
<BODY>
Click on below picture to visit my homepage.<BR><BR> <A HREF="http://www.angelfire.com/nt/sarmadys"> <IMG SRC="me.gif">
</A>
</BODY>
</HTML>
If you see the result in a browser you will notice a blue border around the picture. This blue border ais dded to
image because it is a default for image links. If you don't want this border, use border=0 parameter.
<HTML>
<HEAD>
<TITLE>Example 4-2</TITLE>
</HEAD>
<BODY>
Click on below picture to visit my homepage.<BR><BR> <A HREF="http://www.angelfire.com/nt/sarmadys"> <IMG SRC="me.gif">
</A>
<BR><BR>Without link border : <BR><BR>
<A HREF="http://www.angelfire.com/nt/sarmadys"> <IMG SRC="me.gif" border=0>
</A>
</BODY>
</HTML>
If you have surfed web for a while you have seen links that when you click on them your email program starts a "compose new message" window that its receiver address is entered from web page . This email address is the address you want email to be sent to.
Look at example below to see how you can make a link to an email address.<BODY>
Click on below link to send an email to me <BR> <A HREF="mailto:webmaster@learnem.comt"> Email Me
</A>
</BODY>
If you want, you can use a subject for the email. This example will show you how to do this : Example 4-3:
<HTML>
<HEAD>
<TITLE>Example 4-2</TITLE>
</HEAD>
<BODY>
Click on below link to send us your comments .<BR> <A HREF="mailto:webmaster@learnem.com? subject:comments about your site">Email Me</A> </BODY>
</HTML>
4-5 Lists There are times that you want to insert items related to a subject in list form in your web page. HTML provides you with tags to do this. <UL></UL> tags are first choice of these tags.
Example 4-4:
<HTML>
<HEAD>
<TITLE>Example 4-3</TITLE>
</HEAD>
<BODY>
This is a list of subjects covered in this lesson : <UL>
<LI>Text Links
<LI>Image Links
<LI>Email Links
<LI>List of Items
</UL>
</BODY>
</HTML>
Result page will display list items in separate lines started with a small bullet. You see that we have entered list items started with a <LI> tag between <UL></UL> tags. <UL> tag is a part of list tags.
If you want the items to start with numbers instead of bullets, you must use <OL></OL> tags instead of <UL></UL> tags.<OL>
<LI>Text Links <LI>Image Links <LI>Email Links <LI>List of Items </OL>
4-6 Horizontal Separator Rule Another useful html tag that you will use, is <HR> tag. If you need to separate text in your web page by horizontal lines , you may use this tag.
<BODY>
First section <HR>
Second section </BODY>
<HR WIDTH="50%"> width in percent <HR WIDTH="100"> width in pixels
You can also determine line size parameter to change line diameter.
<HR size=5> It is obvious that you can mix parameters with each other.
Horizontal rule created by this tag is a line that has a shade. You can change the rule to a solid line instead of a shaded line, you can add a NOSHADE parameter.
<HR SIZE=1 NOSHADE>
You can also determine Color for your line: <HR color="#000000">
Above line will not have a shade and it is a solid line.
4-9 End In this lesson you learned how to use text links, image links, email links, lists and horizontal rule.
Until now we have covered general HTML tags. In next lesson we will cover more. We will then start more advanced subjects such as tables, frames and forms in next lessons. Now you must be able to design simple home pages. So why not start ?
Notice: You can find examples of this lessons in our website. There you must go to resources section and then click on "Web email course example page."
Exercises:
Attention:
Do not use any html editing program like MS FrontPage . You must work on the codes yourself.
Course support:
Paid students must send exercises to their tutor. Tutor will return corrected exercise to the student. Others can ask their questions in Support forums in our web site.
what you learned about paragraphs in previous lesson.
around the picture.
solid green line with 50% of the screen width.
to send you comments about your homepage.
============================================================
© 2000,2001 Siamak Sarmady and Learnem Group . All rights reserved. This text is written to be used as text material for "Web Page design Email Course". Any kind of reproduction, redistribution in any form without written permission of the writer is strictly prohibited. This special version is prepared in PDF form. You can redistribute this file without any changes either in contents or in file format. It can not be redistributed in printed form or any other media without permission of the writer.
Back NextBack Next Lesson 5