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

Here's the last part of this tutorial. Our topicsstyle sheets within the head tags and how it is
are:Linking other pages and other websitesimplemented in the within the body tags.To define a
Using CSS in styling your web pagesLet's beginstyle, you have to use a selector as a reference.
here.Creating and placing hyperlinksIt is veryBasic selectors are body, div, span, li, table, td and p.
important to create and place hyperlinks in yourdiv is used for group of paragraphs, p is for one
website to help your visitors navigate your site fromparagraph, span is for selected characters, words or
pages to pages. These are the links displayed in yourphrases, li is for lists, table is for table and td is for
web pages that will change the web page displayedtable data. The good thing here is you can make
when clicked by visitors. These must be prominentyour own selectors using names you prefer.Creating
and properly placed in your pages. If not, yourstyle sheets is the same as what we have done in
visitors will be confused and will eventually leave yourCSS boxes. Whatever style properties you assigned
site unhappy or unsatisfied. Hence, he may neverto those selecters, it will affect area or content of
return. So, make sure that your hyperlinks areyour web pages where you have used the
prominent, descriptive and orderly placed in yourcorresponding selectors. See example below:< style
pages.Linking your pagesIn page 1, you have to placetype="text/css">
the following code where you want the visitor tobody {margin: 10%;color: #00f;background:
click to go to your page 2:< a href="#ff0;text-align: center;}< /style>In the above style,
title="description using relevant keywords">your linkall your contents within the body tags (< body> and
descriptionLooking at the codes, "a" is html anchor) will have the above style properties. Try it by
tag used for hyperlinks, "href" is the attributetyping the above in your mywebpage.html within the
referring to the URL of the destination page andhead tags. Save it and refresh your browser and see
"title" refers to the description of your link. Ifeffect in your web page.Let's see another example:<
possible, use relevant keywords in your descriptionstyle type="text/css">
for search engine optimization.Now, type the abovep {margin: 20px;color: #cff;background:
in your mywebpage.html and replace the domain#ccc;text-align: right;}All of your content that you
name, web page name, title and link description withhave placed within < p> and will have the above
yours. Use relevant keywords in your link descriptionstyle properties. Now, type the above to your
for search engine optimization. Then, save andmywebpage.html within the head tags, save and
refresh your browser to show you how the above isrefresh your browser and see the results.Now, let's
displayed on the web.To see more, hover or placemake our own selectors. As explained in creating CSS
your cursor on the link. The "title" value will beboxes, we can make an id and a class selectors and
displayed on the link while the "href" value or URL ofimplement as follows:< style type="text/css">
the destination page will be shown at the left side of#ownidselector {margin: 0px;text-decoration:
the bottom bar of browser window. It may workunderline;background: cff;}.ownclassselector {margin:
only if you are online and your site is already active10px;font-size: 16px;font-style: italic;color:
on the web.Linking to other websitesYou have to#f00;}.ownclassselector2 {font-weight:
place the following code in your website pagesbold;font-family: courier;border: 1px dashed #cff;}<
where you want your visitors to click to go to otherbody>< div id="ownidselector">This is an example of
particular websites:< a href=" title="description usingusing the id selector
relevant keywords" target="_blank">your link< div class="ownclassselector">This is an example of
description< /a>If you notice, it is the same as linkingusing the class selector
your web pages but it is pointing to other website.< div id="ownidselector"
So, we added the "target" attribute with value ofclass="ownclassselector">This is an example of using
"_blank" to open the destination page into newboth the id and class selectors
browser window. This will make your site remain< span id="ownidselector">This is an example of
active or open even if your visitors click the link tousing span with id selector and class selector
other website.To try it, type the above in yourThis is an example of using both the id and class
mywebpage.html and replace the domain name, webselectors
page name and link description with yours. UseThis is an example of using the two class selectors
relevant keywords in your link description for searchat the same timeLet's me explain to you the above
engine optimization. Then, save and refresh yourstyle properties that are not discussed in Creating
browser to how the above is displayed on the web.CSS Boxes:text-decoration: underline - creates
Click the link and a new browser window will openunderline to the text or characters. You may use
while the page where you clicked the link remained"none" instead of "underline" to remove the
open.Hyperlinks with imagesYou may use images inunderline.font-size: 16px - fixes the size of the font
your hyperlinks. In this case, the visitors can click anwithin the affected selector. You may use px, em, pt
image in your web pages with links that will sendand % as unit of measure.font-style: italic - makes
them to other pages in your site or to otherthe text or characters italic. You may also use
websites you have linked to. See the examplenormal, oblique.color: #f00 - defines the color of the
below:Linking to your other web pages:text or characters. You may use different web
< a href=" to other websites:colors here. It is advisable to use web-safe colors as
< a href=" /a>. So, in place of link description, youother computers or browsers could not display other
use image. When your visitors click the image, thecolors.font-weight: bold - makes the text or
page will change to the destination page.To try thecharacters bold. You may use also normal, bolder,
above, place the image that you want to be usedlighter, 100 up to 900.font-family: courier - defines the
with hyperlinks in the same directory where yourfont type of the text or characters. Common font
mywebpage.html is located. Then, type the abovetypes are arial, verdana and helvetica.Type the above
codes in your mywebpage.html but type only thecodes to your mywebpage.html within the style and
image filename in the "src" value. Then, save andbody tags as noted, then save and refresh your
refresh the browser to effect the changes. Hover orbrowser to see the effects of the above style
place your cursor on the image. The "alt" value or theproperties. You may change the values, then save
image description will be displayed on the image whileand refresh to familiarize yourself with styling
the "href" value or URL of the destination page willproperties.For complete web-safe color codes and
be shown at the left side of the bottom bar ofcomplete list of style properties, click hereWhen you
browser window.Styling your web page usinghave already familiarized yourself with the html and
CSSW3C.org requires the website style definitionsCSS codes, it will be easy for you to create a web
must be placed in the style sheets or CSS. Styles arepage.I hope you've learned something in this tutorial.
used to manipulate the design of the website suchJust continue practicing and learning. Research,
font sizes, colors, font face, box properties, tableresearch, research. There so many free tutorials here
properties, paragraph format, etc.Placing your styleson the web.To learn more of HTML and CSS, search
within the head or in a separate CSS file let youGoogle by typing "html tutorial" or "css tutorial" - Click
control the style of your web pages in just one page.Search and you will find many choices.
Now, I will tell you the easy way to create your