Apr 28

Get started creating web pages using text files and HTML code! This article is a continuation of HTML Explained: Part 1, which gives a general overview of HTML. Here, we’re going to get into the nitty gritty of the code itself. Once you see how simple it really is, you should RUN, not walk to the nearest bookstore and grab your own copy of a handy HTML manual. All right, let’s begin.

In viewing the source of web pages, you may have noticed a lot of these things: < >. They’re called HTML tags, and they’re what the computer uses to interpret the HTML code.

NOTE: in this article I had to add spaces to all of my HTML tags so that I could display them without actually having them work. There are two HTML tricks to actually “shutting off” HTML tags, but neither of them function properly in this submission box.

The HTML tags shown here will display like so: < FAKE TAG > but in reality you’re supposed to type them like so:

A friend of mine describes HTML tags as “on/off switches.” An easy example which you may be well-familiar with, is the Bold command. To “turn on” Bold, type < B > (but with no spaces). All of the text that comes after the Bold tag, will then be Bolded. To “turn off” the bold characteristic, type < /B >. Any text that comes after the “bold off” tag will unbolded.

It’s worth mentioning that in all cases, all text that falls between an “on” or “off” HTML tag will take on the characteristic of that tag descriptor. How much text can you put in between two HTML tags? As much or as little as you want. That means, you can use just a couple of HTML tags to design paragraphs and paragraphs of text.

What are some other HTML tags that web designers frequently use?

< I > and < /I > (for italics)
< U > and < /U > (for underline)
< BR > (to create a single line break).

In most but not all cases, if you activate an HTML tag by enclosing it in these: < >s, you must also deactivate it at some point, as in < I > and < /I > for italics shown above. An exception to this rule is < P >, or paragraph separator tags, and < BR > or line breaks.

Specifying Multiple Text Characteristics Within a Single HTML Tag

HTML tags work in different ways, depending on the aspect of the design they’re controlling. As I mentioned above, you can control all elements of web design via HTML codepage separation, text formatting, image placement, design layout, and hyperlink insertion. For this reason, one HTML tag can include multiple variables. This sounds a lot trickier than it is.

For example, a tag with multiple variables enclosed all in one of these: < >, can be used to format text. An equals (=) sign is used to specify multiple characteristics within a single HTML tag. To tag a section of text for font specs, begin with:

< FONT FACE=

Using no spaces after the equals (=) sign, type your font name in quotes, as so: “arial”. You can also specify the size and color here. In the same tag that says to close. Your font tag will now look like this:

< FONT FACE="arial" SIZE="2" > (but with no end spaces).

If you wanted to, you could also include a color for the text within that tag. The color is entered in the same way as the font face and size, and is named within its own set of quotation marks either in a basic name such as “black” or “red”, or a 6-digit numerical code that begins with a number sign.

So, an HTML tag that designates a paragraph typed in Arial font at the 2nd smallest size of type, in the color black, would look like this:

< FONT FACE="arial SIZE="2" COLOR="black" >

All of the type that came after this HTML tag would take on the characteristics above. Once you wanted to “shut off” the font characteristics of that blurb of text, you would type the tag < /FONT >.

Using HTML Tags to Add Images to Your Web Page

Now suppose you wanted to add an image to your webpage. And let’s assume the image was already located in the folder of your website where images are stored. In order to make the image appear in your NEW web page, you need:

1. the complete web address of your website (such as http://www.wordfeeder.com),

2. the folder (or subdirectory) on your server where images are kept, and

3. the file name of the image (ends in .jpg).

The HTML code used to “pick up” an image from a source is IMG SRC. As always, it belongs inside those handy bracket-things. So your tag would begin:

< IMG SRC=

Without typing any spaces before or after the = (equals) sign, you’d then paste the URL of where the image is located (as explained in examples 1, 2 and 3 above), and follow with the filename and .jpg ending. I’ll illustrate this with an example from my own web collection of images:

< IMG SRC="http://www.wordfeeder.com/sitebuildercontent/sitebuilderpictures/wordfeederlogox.jpg" >

By typing that HTML tag with the specific web address and folder information/filename within quotation marks, the computer knows the origin of the image, and will then “hyperlink it” into your web page.

If you’re ever unsure of the filepath of an image you need, go to the webpage where it’s located and then right-click the image. Under “properties”, you’ll find the complete URL path that must be typed in between the two quotation marks that fall inside your Image Source tag.

Note: you do not need to “shut off” an image tag.

You can also include multiple variables within a single image tag. For example, if you wanted to left-align the above image, you’d edit the above tag to look like this:

< IMG SRC="http://www.wordfeeder.com/sitebuildercontent/sitebuilderpictures/wordfeederlogox.jpg" ALIGN=left >

Hyperlink Tags for Email and Website Addresses

Ever wonder how webmasters create live links? A live link might say something like, “Click here for more info!” and then when you click there, you’re suddenly transported to a new web page. A live link is simply type covering a website address. Check it out:

< A HREF="http://wordfeeder.com" >Visit Wordfeeder for more info!< /A >

That’s HTML code for “hyperlinked text”. It looks weird, but think about it this way. The first part in that’s enclosed in these: < >, is what turns on the “make the following words into a link that leads to the address I am typing here” function. The end tag, < /A > is what “shuts off” the “hypertext linking” feature and will then let you resume typing in normal, unlinked text.

As you can see, by typing a few simple HTML tags, you can create some pretty amazing things. This article is just the tip of the iceberg. I hope that the explanations and examples shown have at least provided a basic understanding of HTML for you. A great way to learn is by “studying” other people’s web page code from the View>Source window. You practice by copying their HTML code into your own fake pages, and filling in the “meat” between their “on” and “off” tags with text and images that suit your own purposes. But be careful. If you paste HTML incorrectly, you can totally wreck and corrupt your document.

For folks who want to get into serious design, I highly recommend that you buy a comprehensive HTML guide. Once you get the hang of HTML, there’s no telling what you can create!

Copyright 2005 Dina Giolitto. All rights reserved.

Liked this article? Have more of the same emailed to your inbox each month. Sign up for the Copywriting and Marketing Ezine from Dina at Wordfeeder.com and learn to write search engine friendly web copy and market your web based business for free.

Tags: , , , ,

Apr 25

One of the major topics on your CCNA and CCNP exams is Frame Relay. Additionally, Frame Relay is one of the most popular WAN technolgies in today’s networks. Getting hands-on experience with Frame Relay in Cisco networks isn’t just a good idea, it’s a necessity. Let’s face it, your employer is going to get a little touchy if you start experimenting with your network’s Frame Relay setup.

To practice all your important Frame Relay commands for your exams, you need a working Frame Relay cloud in your home lab. A production network’s Frame cloud consists of a lot of Frame switches, but if you choose wisely, a single Cisco router can act as your home lab’s entire Frame cloud!

Before we look at the configuration of such a router (hereafter referred to as a “frame relay switch”), let’s look at the physical requirements.

The more serial ports you have, the better. You should get a router with at least four serial ports. For frame switching purposes, it doesn’t matter if the ports are synchronous or asynchronous – you just need the ports.

You will also need some DTE/DCE cables. The DCE end of the cables will be connected to the frame switch.

A great configuration for a CCNA practice lab is three routers that serve as “production” routers, and a 4th router as a frame relay switch. (You’ll want an access server as well, but that’s another article.)

What I use in my student and customer pods is a setup where R1 is connected to the frame switch’s S1 port, R2 is connected to S2 on the frame switch, and R3 is connected to the frame switch’s S3 port.

Now comes the tricky part – the configuration. A frame relay switch’s config can be hard to find, so here’s a copy of mine. Pay particular attention to the config on ports s1, s2, and s3.

version 12.0
service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!
hostname FRAME_SWITCH

!
!
ip subnet-zero

no ip domain-lookup

frame-relay switching

!
!
!
interface Ethernet0

no ip address

no ip directed-broadcast

shutdown

!
interface Serial0

ip address 10.1.1.2 255.255.255.0

clockrate 56000

!
interface Serial1

no ip address

no ip directed-broadcast

encapsulation frame-relay

logging event subif-link-status

logging event dlci-status-change

clockrate 56000

no frame-relay inverse-arp

frame-relay intf-type dce

frame-relay route 122 interface Serial2 221

frame-relay route 123 interface Serial3 321

!
interface Serial2

no ip address

no ip directed-broadcast

encapsulation frame-relay

logging event subif-link-status

logging event dlci-status-change

clockrate 56000

no frame-relay inverse-arp

frame-relay intf-type dce

frame-relay route 221 interface Serial1 122

!
interface Serial3

no ip address

no ip directed-broadcast

encapsulation frame-relay

logging event subif-link-status

logging event dlci-status-change

clockrate 56000

no frame-relay inverse-arp

frame-relay intf-type dce

frame-relay route 321 interface Serial1 123

!
interface BRI0

ip address 150.1.1.1 255.255.255.252

no ip directed-broadcast

encapsulation ppp

dialer map ip 150.1.1.2 name R2 broadcast 2335552221

dialer-group 1

!
ip classless

!
dialer-list 1 protocol ip permit

!
line con 0

exec-timeout 0 0

logging synchronous

transport input none

line aux 0

line vty 0 4

login

!
end

The key command in the global configuration is frame-relay switching. You must have this configured before you can configure the interfaces.

The interfaces will be configured with the frame route command. Let’s take a look at what each value means in the command frame-relay route 122 interface Serial2 221.

frame-relay route – the command

122 – the incoming DLCI on this interface

interface serial2 – the interface the data will be sent out

221 – the outgoing DLCI

This command on S1 means that anything that comes in on this port on DLCI 122 will be sent out interface serial2 on DLCI 221.

It’s a good idea to hard-code the interfaces to act as DCEs with the frame intf-type dce command. Since these interfaces are acting as DCEs, the clockrate command is needed for the line protocol to come up.

Once you’ve configured your frame switch as shown and have configured the frame map statements on the “production” routers, you can test the frame switch configuration. On the frame switch, run the command show frame route.

FRAME_SWITCH#show frame route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial1 122 Serial2 221 active
Serial1 123 Serial3 321 active
Serial2 221 Serial1 122 active
Serial3 321 Serial1 123 active

You should see “active” for all the interfaces. If you see “deleted”, make sure your frame switch interfaces are open if they are, check the router configs.

Keep in mind that you can still configure routing protocols to run on ports that you’re not using for frame switching. The router we used here had an ethernet port and BRI port, and the BRI port has been configured as part of the production network. Running frame switching does not disable IP routing.

Purchasing and configuring your own frame relay switch is an invaluable part of your Cisco education. By practicing your frame commands and configuring frame connections over your own frame relay cloud, you’re polishing your Cisco skills and gaining knowledge that cannot be duplicated by simulator programs.

To your success,

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, home of free CCNA and CCNP tutorials, The Ultimate CCNA Study Package, and Ultimate CCNP Study Packages.
For a FREE copy of his latest e-books, “How To Pass The CCNA” and “How To Pass The CCNP”, visit the website and download your free copies. You can also get FREE CCNA and CCNP exam questions every day! Pass the CCNA exam with The Bryant Advantage!

Tags: , , , , , , , , , , , ,

Apr 22

Today’s GPS receivers are extremely accurate, thanks to parallel multi-channel design. Garmin’s 12 parallel channel receivers are quick to lock onto satellites when first turned on and they maintain strong locks, even in dense foliage or urban settings with tall houses. Certain atmospheric factors and other sources of error can affect the accuracy of GPS receivers. Garmin

Tags: , ,