Promotional Articles
Simple HTML Tutorial for Online Authors by David Hougland - WebVector.net Website Services Most article sites that are open to the public allow a limited number of simple HTML tags to be used in your articles for formatting and emphasis purposes, but knowing how to use these tags effectively may require a little explanation. After you have used them a few times and previewed the results, it will become obvious how they work and you may use them often.
The simplest of these tags are used for displaying text as bold or italic for emphasis. There are two tags for creating bold text, and . One of these is called a physical attribute, and the other is a logical attribute. At one time, many browsers treated these attribute types differently, but with most modern browsers, the difference has become irrelevant and the two tags are treated the same way.
To make text bold, you must have the start bold tag above just before the bold text, and an end bold tag immediately following the bold text. The end bold tag looks like this: . These formatting tags are used in pairs, one to tell the browser where to start the bold text, and a second one to tell the browser where to end the bold text.
So to make a single word in a sentence bold, you would type it in like this:
This is bold text.
And the sentence would come out looking like this:
This is bold text.
Italic text works the same way with the start italic () and end italic () tags. These tags also have physical attribute counterparts ( and ), but like the bold tags, these are interchangeable in modern browsers. To make a single word in a sentence italic, you would type it in like this:
This is italic text.
And the sentence would come out looking like this:
This is italic text.
These tags may also be combined to produce another effect. By nesting the tags above, you can create text that is both bold and italic. To make a single word in a sentence bold and italic, you would type it in like this:
This is bold and italic text.
And the sentence would come out looking like this:
This is bold and italic text.
As illustrated above, when you nest tags to get text that is both bold and italic, you should end the tags in reverse order. Like in the example, if you open the bold tag first, you should close it last. If you open the italic tag last, you should close it first. When nesting HTML tags, the rule is, "First in, last out."
In each case, it is very important to remember the end tag. If you omit it, all of your text from the point where you invoked bold or italic text to the end of your article will be affected. This is one good reason to use the preview often while creating your article. You may think you've used the tags correctly, but problems like this will be visually obvious when you see the page rendered in a browser.
The other tags that are commonly permitted on article sites are for creating lists. Many people try to create simulated lists by typing in a number or some bullet character followed by the sentence or other list item. They often try to pad the line out by including multiple spaces or tabs. The results of this approach will be disappointing for more than one reason.
If you use numbers for your list items, they will not line up correctly using a proportional font, especially if you get into two-digit numbers, which will give your list a jagged appearance. Long sentences will wrap in a way that is inconsistent with list formatting, causing your bullets to be lost in a sea of lines that all begin at the extreme left. Padding your lines out with tabs or multiple spaces doesn't work because browsers ignore these characters. Browsers will render tabs or multiple tabs as a single space, and they will render multiple spaces as a single space. You can put ten tabs or twenty spaces in the middle of your line, but when you view the page in a browser, all you will see is a single space. This makes getting your simulated list to align properly impossible. Fortunately, all of these problems can be solved by using the HTML list tags which are supported by most article sites.
A simulated list might look like this:
1. This is list item one.
2. This is list item two.
3. Number three is an extra-long list item that illustrates the behavior when the line wraps. If many lines wrap within the list, it won't even look like a list anymore.
4. This is list item four.
The same items in an HTML list will look like this:
The two most common HTML list types are the ordered list, in which each line begins with a number, and the unordered list, in which each line begins with a bullet. The tags for starting these list types look like this: for an ordered list, and
or . for an unordered list. Then, each item in the list must be surrounded by the start and end list item tags. These tags look like this:
So, to create the sample ordered list seen above with the same list items in an unordered list, you would type it in like this:
And the list would come out looking like this:
As seen here, an HTML list is automatically preceeded and followed by a blank line. A special case is the anchor tag, or 'a' tag. This tag is used to create clickable hyperlinks in your article that will direct the browser to another web address. Some sites do not permit the anchor tag for security reasons, others allow them only in certain places or limit the number of them in each article. If you include anchor tags in your article, you may have to modify or even remove them before submitting the article to some sites.
The anchor tag to create a basic link to Google looks like this:
Go to Google!
And the link would look like this:
Go to Google!
On most article sites that permit the 'a' tag, the referenced resource will open in a new browser window. To modify the anchor tag shown above, simply change the value of the 'href' attribute to the url of your choice, and change the anchor text between the start and end tags with a text string that will indicate what resource the link points to. For example, to create a link to my own home page, the tag would be:
Visit WebVector.net Website Services!
And the link would look like this:
Visit WebVector.net Website Services!
A little bit of experimenting with these tags and seeing the result in the preview will make it clear how they work, but this should give you a head start. With a little practice, you will use these simple tags as easily as you use your mouse. However, the real need for emphasis in your text using bold or italics is limited, and you may find that you use them less than you might think. When you really need it, it's good to have the ability to produce bold or italicized text, but just like in this article, mostly you don't need it.
David is a Perl and PHP programmer for web-based database applications and is co-owner of WebVector.net Website Services in Boring, OR. He is the programmer responsible for the functionality and interface design of IncredibleArticles.com.
Phone 1-877-238-2421
Click4promos.com
46881 SE Highway 26
Sandy, Oregon 97055
Fax 503-826-1951