articlecavern.com articlecavern.com
Search:    Main Page :> About Us :> Security & Privacy :> Terms of Use :> Add Url :> Add Article   
Get 3 way links
 

Medical Care

Culture & Art

Government & Politics

Internet & Computers

People & Communities

Technology & Science

Games & Play

Business & Services

Children

Eating & Drinking

Relationship & Lifestyle

Outdoor & Sports

Garden & Home

Shopping & Auction

Recreation & Entertainment

Issues & News

Hotels & Travel

Finance & Investment

Fitness & Health

Academics & Education

Jobs & Careers

Self Healing

Vehicles & Automotive

Estate & Realty


 

  Main Page › Internet & Computers › Web Design & Development
   
 

Creating Your Own Web Page is Easy - A Tutorial (Part 3)

   

Author: Hardi Budd

Here's the last part of this tutorial. Our topics are:

Linking other pages and other websites Using CSS in styling your web pages

Let's begin here.

Creating and placing hyperlinks

It is very important to create and place hyperlinks in your website to help your visitors navigate your site from pages to pages. These are the links displayed in your web pages that will change the web page displayed when clicked by visitors. These must be prominent and properly placed in your pages. If not, your visitors will be confused and will eventually leave your site unhappy or unsatisfied. Hence, he may never return. So, make sure that your hyperlinks are prominent, descriptive and orderly placed in your pages.

Linking your pages

In page 1, you have to place the following code where you want the visitor to click to go to your page 2:

< a href="http://your-domain-name.com/page-2-name" title="description using relevant keywords">your link description

Looking at the codes, "a" is html anchor tag used for hyperlinks, "href" is the attribute referring to the URL of the destination page and "title" refers to the description of your link. If possible, use relevant keywords in your description for search engine optimization.

Now, type the above in your mywebpage.html and replace the domain name, web page name, title and link description with yours. Use relevant keywords in your link description for search engine optimization. Then, save and refresh your browser to show you how the above is displayed on the web.

To see more, hover or place your cursor on the link. The "title" value will be displayed on the link while the "href" value or URL of the destination page will be shown at the left side of the bottom bar of browser window. It may work only if you are online and your site is already active on the web.

Linking to other websites

You have to place the following code in your website pages where you want your visitors to click to go to other particular websites:

< a href="http://other-site-domain-name.com/page-name" title="description using relevant keywords" target="_blank">your link description< /a>

If you notice, it is the same as linking your web pages but it is pointing to other website. So, we added the "target" attribute with value of "_blank" to open the destination page into new browser window. This will make your site remain active or open even if your visitors click the link to other website.

To try it, type the above in your mywebpage.html and replace the domain name, web page name and link description with yours. Use relevant keywords in your link description for search engine optimization. Then, save and refresh your browser to how the above is displayed on the web. Click the link and a new browser window will open while the page where you clicked the link remained open.

Hyperlinks with images

You may use images in your hyperlinks. In this case, the visitors can click an image in your web pages with links that will send them to other pages in your site or to other websites you have linked to. See the example below:

Linking to your other web pages: < a href="http://your-domain-name.com/other-page-name>

Linking to other websites: < a href="http://other-site-domain-name.com/page-name>

If you notice, it is just like you are inserting an image to your web page. The only difference, it is placed between the anchor tags < a href="../URL">< /a>. So, in place of link description, you use image. When your visitors click the image, the page will change to the destination page.

To try the above, place the image that you want to be used with hyperlinks in the same directory where your mywebpage.html is located. Then, type the above codes in your mywebpage.html but type only the image filename in the "src" value. Then, save and refresh the browser to effect the changes. Hover or place your cursor on the image. The "alt" value or the image description will be displayed on the image while the "href" value or URL of the destination page will be shown at the left side of the bottom bar of browser window.

Styling your web page using CSS

W3C.org requires the website style definitions must be placed in the style sheets or CSS. Styles are used to manipulate the design of the website such font sizes, colors, font face, box properties, table properties, paragraph format, etc.

Placing your styles within the head or in a separate CSS file let you control the style of your web pages in just one page. Now, I will tell you the easy way to create your style sheets within the head tags and how it is implemented in the within the body tags.

To define a style, you have to use a selector as a reference. Basic selectors are body, div, span, li, table, td and p. div is used for group of paragraphs, p is for one paragraph, span is for selected characters, words or phrases, li is for lists, table is for table and td is for table data. The good thing here is you can make your own selectors using names you prefer.

Creating style sheets is the same as what we have done in CSS boxes. Whatever style properties you assigned to those selecters, it will affect area or content of your web pages where you have used the corresponding selectors. See example below:

< style type="text/css"> body {

margin: 10%;

color: #00f;

background: #ff0;

text-align: center;

}

< /style>

In the above style, all your contents within the body tags (< body> and ) will have the above style properties. Try it by typing the above in your mywebpage.html within the head tags. Save it and refresh your browser and see effect in your web page.

Let's see another example:

< style type="text/css"> p {

margin: 20px;

color: #cff;

background: #ccc;

text-align: right;

}

All of your content that you have placed within < p> and

will have the above style properties. Now, type the above to your mywebpage.html within the head tags, save and refresh your browser and see the results.

Now, let's make our own selectors. As explained in creating CSS boxes, we can make an id and a class selectors and implement as follows:

< style type="text/css"> #ownidselector {

margin: 0px;

text-decoration: underline;

background: cff;

}

.ownclassselector {

margin: 10px;

font-size: 16px;

font-style: italic;

color: #f00;

}

.ownclassselector2 {

font-weight: bold;

font-family: courier;

border: 1px dashed #cff;

}

< body>

< div id="ownidselector">This is an example of using the id selector

Author Bio:
Hardi Budd is a famous writer. Hardi likes to scribble articles about this topic.
You can also reach this article by using: web site development, web design & development, website development tampa
 
 
 

Related Articles

 
Why Autoresponders Are An Essential Tool For Your Business
 
How To Have A Successful Links Exchange Campaign
 
Best Practices in Offshore Software Development
 
Avoid Internet Theft, Fraud and Phishing
 
Creating Your Own Ebook with Private Label Rights
 
How to Add Dynamically Generated Graphs and Charts to Web Pages and Applications
 
How Safe Is Your Money Online?
 
Do You Publish? Do You Fear Spam Accusations?
 
Mastering The Auto Responder Message
 
Batteries That Overheat Stop Working
 
 
 
 
 

Securing and Maintaining Your Computer and Online Business

Keeping your computer in top shape is an important aspect to an online business. Why? Without it, yo ... - Vickie Scanlon
 

Create Your Own Online Marketing "TV" Station

Describes how any online marketer can set up their own online "TV" station by understanding how mult ... - Jim Edwards
 

How To Create Amazingly Seductive Offers Only a Moron Could Resist!

Have you seen the movie The Godfather? - Dan Lok
 
 

Internet Promotion: 10 Incredible, Intriguing Ways To Increase Your Profits

Are you making money from your website? Will you like to increase your profits? - I-key Benney
 

Generate Huge Traffic Through Article Marketing

Articles can offer information to your readers and can let you demonstrate your capabilities. When y ... - Daegan Smith
 
 
Main Page :> Security & Privacy :> Terms of Use
Copyright © 2006, www.articlecavern.com