Home
Web Master Resources
Support Forum
Support Forum
SMF Themes
SMF Themes
Tiny Portal Themes
Tiny Portal Themes
SMF Tutorials
Simple Machine Tutorials
Web Design
Web Design
Tutorials
Web Desig tutorials
Themes and Templates
Themes and Templates
Articles
Web Master Articles
PHP and Java Snippets
Php Code
Graphics and Clip Art
Free Graphics and Clip Art
Forum Software
Forum Software
Web Hosting
Web Hosting
Web Tools
Web Tools
Web Directory
Web Directory
Meta Tag Generator
Meta Tag Generator
Services Offered
Services Offered
Our Network Sites
Networks
Link To Us
Link To Us


Support Our Site

paypal

 


Users Online

HTML Tutorials - Building From Code Lesson 1

  1. What is HTML

  2. How to build your first web page

  3. Basic Html Tag Reference Chart

How to Create A Link

What is a link?

A text link is a line of text that takes you to another web page or to a different area on a page. This is an example of the code used to make the text link above "What is HTML", however what this code is not showing is the color and font size.

Try this yourself, open notepad and insert this code, then save as link.html and then double click on it to open it in your web browser.

The whole code should look like this:

<html>

<head>

<title>I Made This Link</title>

</head>

<body>

<a href="http://rebelrosenetworks.com/whatishtml.html">What is HTML</a>

 </body>

</html>

 

The code below shows the color and font size as well as how it is underlined. We will work more with that later.

 

<a style="text-decoration: underline; text-underline: single" href="http://rebelrosenetworks.com/whatishtml.html">
<font color="#0000FF">What is HTML</font></a>

 

Try this yourself, the page you just saved with notepad and insert the code, then click save and then double click on it to open it in your web browser.

The whole code should look like this:

<html>

<head>

<title>I Made This Link</title>

</head>

<body>

<a style="text-decoration: underline; text-underline: single" href="http://rebelrosenetworks.com/whatishtml.html">
<font color="#0000FF">What is HTML</font></a>

 </body>

</html>

 

A picture or graphic is can be linked the same way.

<a href="http://www.domain.com' target='_blank'><img src='http://www.domain.com/image.gif' border='0'></a>

You would replace the "www.domain.com" with your domain name and the "www.domain.com/image.gif" with your domain and the name of the image. If you have your image stored in a different area other than the root directory you will need to add exactly where the image is located at as well as the image name such as image.gif, image.jpg and so on.

 

Learn how to open a link in a new window.

To make a link open in a new window, because you may not want them to close your site you would code it like this.

<a href="http://www.rebelrosenetworks.com/" target="_blank"> This will open this page in a new window</a>

Try this yourself, the page you just saved with notepad and insert the code, then click save and then double click on it to open it in your web browser.

The whole code should look like this:

<html>

<head>

<title>I Made This Link</title>

</head>

<body>

<a href="http://www.rebelrosenetworks.com/" target="_blank"> This will open this page in a new window</a>

 </body>

</html>

 

Learn how to create a mailto link.

<a href="mailto:me@domain.com">Clikc here to email me</a>

Try this yourself, the page you just saved with notepad and insert the code, then click save and then double click on it to open it in your web browser.

The whole code should look like this:

<html>

<head>

<title>I Made This</title>

</head>

<body>

<a href="mailto:me@domain.com">Click here to email me</a>

</body>

</html>

 

In up coming lessons

  1. Learn how to link within the same page

  2. Learn how to insert an image into a web page

  3. Learn how to create an table

  4. Learn how to set the height and width of a table

  5. Learn how to create a table border

  6. Learn how to add cell padding to a table

  7. Columns and Rows that Span Multiple Cells


     

 By RebelRose

This and all material contained within is copyrighted and may not be reproduced without the express consent of the author and/or this site.


 

Site Copyright RebelRose Networks © 2006-2008 All rights reserved
  Privacy Policy, Contact Us, Copyright Notice, Advertising, Site Map

About Your Credit - Relationships - Web Master Tips & Tools - Financing-Refinance - Weight Loss - Hybrid Cars - Web Hosting
Health Care Services - SMF-Tiny Portal Themes - Web Design - SMF Directory - Web Master Resources - Online Shopping
Personal Loan - Loans - Phoenix Landscaping - Credit Card Consolidation