Format Your Listings with HTML


Here's a secret known to successful sellers: eBay lets you use HTML to spruce up your item listings. While this isn't a task for the faint of heart, writing your own code lets you create highly individualized item listingsmuch fancier than you can do with a template-driven listing creator.

How HTML Works

HTML coding might sound difficult, but it's really pretty easy. HTML is really nothing more than a series of hidden codes that tell web browsers how to display different types of text and graphics. The codes are embedded in a document, so you can't see them; they're visible only to your web browser.

Note

HTML stands for hypertext markup language.


These codes are distinguished from normal text by the fact that they're enclosed within angle brackets.

Each particular code turns on or off a particular attribute, such as boldface or italic text. Most codes are in sets of "on/off" pairs. You turn "on" the code before the text you want to affect and then turn "off" the code after the text.

For example, the code <h1> turns specified type into a level-one headline; the code </h1> turns off the headline type. The code <i> is used to italicize text; </i> turns off the italics. (As you can see, an "off" code is merely the "on" code with a slash before it.)

Note

I present only a handful of the huge number of HTML codes available to you. If you want to learn more about using HTML in your eBay auction listings, I refer you again to my companion book, eBay Auction Template Starter Kit (Que, 2006). It will guide you step-by-step through the process of creating HTML-based item listingsno prior experience required!


Entering HTML Codes

You enter HTML codes while you're creating your item listing. When you reach the Description section of the Describe Your Item page, click the View HTML link. This displays eBay's HTML editor, shown in Figure 17.7. You can enter your raw HTML code into this form.

Figure 17.7. Enter your own HTML code on eBay's Describe Your Item page.


Codes to Format Your Text

We'll start off with some of the most common HTML codesthose used to format your text. Table 17.4 shows some of these text-formatting codes you can use in your item description.

Table 17.4. HTML Codes to Format Text

Effect

On Code

Off Code

Bold

<b>

</b>

Strong (bold)

<strong>

</strong>

Emphasis (italic)

<em>

</em>

Italic

<i>

</i>

Underline

<u>

</u>

Center

<center>

</center>

First-level headline

<h1>

</h1>

Second-level headline

<h2>

</h2>

Third-level headline

<h3>

</h3>


Just surround the text you want to format with the appropriate on and off codes, and you're ready to go. For example, to format a piece of text as strong (bold), you'd write something that looks like this:

 <strong>this text is bold</strong> 


Codes for Font Type, Size, and Color

You can also use HTML to specify a particular font type or size, using the <font> code.

Note

If all you want to do is add some bold or color text to your listing, you don't have to learn HTML or use fancy listing-creation tools. eBay's standard text editor is available when you create your item listing with the Sell Your Item form. It lets you add HTML effects in a WYSIWYG environment, much the same way you add boldface and italics in your word processor. Just highlight the text you want to format and then click the appropriate formatting button. No manual coding necessary.


To specify a font type for selected text, use the <font> code with the face attribute, like this:

 <font face="xxxx">text</font> 


Replace the xxxx with the specific font, such as Arial or Times Romanin quotation marks.

Another common use of the <font> code is to specify type size. You use the size attribute, and the code looks like this:

 <font size="xx">text</font> 


Replace the xx with the size you want, from 6 to +6, with 6 being the smallest, +6 being the biggest, and 0 (or no size specified) being "normal" size type.

You can also use the <font> code to designate a specific text color. In this instance, you use the color attribute, like this:

 <font color="#xxxxxx">text</font> 


Replace the xxxxxx with the code for a specific color. Table 17.5 lists some basic color codes.

Table 17.5. Common HTML Color Codes

Color Name

Color Code

Black

000000

White

FFFFFF

Gray

808080

Silver

C0C0C0

Yellow

FFFF00

Orange

FFA500

Brown

A52A2A

Red

FF0000

Maroon

800000

Olive

808000

Fuchsia

FF00FF

Chartreuse

7FFF00

Green

008000

Lime

00FF00

Teal

008080

Aqua

00FFFF

Navy

000080

Blue

0000FF

Purple

800080

Violet

F080F0


Caution

Just because you have a specific font installed on your computer doesn't necessarily mean that all the other web users who will be viewing your ad have the same font installed on their PCs. If you change fonts in your listing, change to a common font that is likely to be pre-installed on all Windows computers. Arial and Times Roman are always safe bets; choosing something more obscure could ensure an unpredictable display for your listing on many computers around the world.


Codes for Paragraphs

When it's time to start a new paragraph, you start the paragraph with a <p> code. Then, when the paragraph is done, you close it with a </p> "off" code. The code looks something like this:

 <p> This is a normal text paragraph. It consists of multiple sentences. Like these. </p> 


Note

For a complete list of the literally hundreds of different HTML color codes, check out the color charts at www.immigration-usa.com/html_colors.html and html-color-codes.com. Just choose a color and view the corresponding color code!


The <p> code can also contain the align attribute, which indicates how the paragraph is alignedleft, center, or right. Paragraphs are left-aligned by default, so if you want to center a paragraph, you'd use the following code:

 <p align="center"> This is the paragraph to be centered. All the text in the paragraph is aligned as indicated. </p> 


Codes for Paragraphs, Line Breaks, and Rules

Some of the simplest HTML codes let you break your text into separate lines and add horizontal rules between paragraphs. These codes are inserted into your text just once; there are no matching ending codes.

Table 17.6 lists these "on-only" codes.

Table 17.6. HTML Codes for Lines and Paragraphs

Action

Code

Line break

<br>

Horizontal rule (line)

<hr>


Note

Earlier versions of HTML let you use the <p> tag to indicate the start of a new paragraph, without requiring the corresponding </p> "off" code at the end the paragraph. Current HTML standards encourage the use of the <p> and </p> codes as proper containers for the paragraph text. That said, you can probably get by without the </p> "off" code, although it's good practice to include it.


Codes for Graphics

As you'll learn in Chapter 18, "Using Pictures in Your Listings," adding pictures and other graphics to your listings really brings some excitement to the normally plain-text world of eBay. You can add pictures the eBay way (described in Chapter 18), which puts all your pictures at the end of your text descriptionor you can put a picture anywhere in your text, using HTML.

Before you can insert a graphic into your listing, you need to know the address of that graphic (in the form of a web page URL). Then you use the following code:

 <img src="URL"> 


No "off" code is required for inserted graphics. Note that the location is enclosed in quotation marksand that you have to insert the http:// part of the URL.

As an example, if your graphic is the file graphic01.jpg located at www.webserver.com/mydirectory/, you insert this code:

 <img src="/books/2/945/1/html/2/http://www.webserver.com/mydirectory/graphic01.jpg"> 


The nice thing about inserting graphics this way is that you can include more than just picturesyou can add logos, starbursts, you name it. (And you can put the graphics anywhere in your text description.) You use the same technique to link to any graphic image anywhere in your item listing.

Codes for Links

You can use HTML to add links to your own personal web pages (a great idea if you have additional images of this specific item) or to related sites. Many sellers also like to provide a direct email link in case potential bidders have questions they need answered.

To insert a link to another web page in your item listing, you use the following HTML code:

 <a href="URL">this is the link</a> 


The text between the on and off codes will appear onscreen as a typical underlined hyperlink; when users click that text, they'll be linked to the URL you specified in the code. Note that the URL is enclosed in quotation marks and that you have to include the http:// part of the address.

You can also create a "mail-to" link in your listing; users will be able to send email to you by simply clicking the link. Here's the code for a mail-to link:

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


Note

eBay allows links to pages that provide additional information about the item listed, additional photos of the item, and your other eBay auctions. eBay prohibits links to pages that attempt to sell merchandise outside eBay. Link at your own riskeBay reserves the right to cancel any inappropriate listings.


Codes for Lists

Finally, if you have a lot of features to list for your item, you might want to format them in a bulleted list. Using HTML codes, it's easy to create a neatly bulleted list for your ad.

First, you enclose your bulleted list with the <ul> and </ul> codes. Then, you enclose each bulleted item with the <li> and </li> codes.

The code for a typical bulleted list looks like this:

 <ul>     <li>item one</li>     <li>item two</li>     <li>item three</li> </ul> 


Bulleted lists are great ways to run through a list of attributes or specifications; it's a lot cleaner than just listing a bunch of stuff within a long text paragraph.

Tip

When you're dealing with complex coding like this, it's easier to understand what's going on if you indent the different levels of code.


The Absolute Minimum

  • Here are the key points to remember from this chapter:

  • Pack as much info into your item listing's title as possible, using common abbreviations and grading levels.

  • The description of your item can be as long as you wantso take the space to include as much detailed information as is practical.

  • Include all necessary fine print for your transaction at the bottom of the item description.

  • Add visual appeal to your item listing by applying a template, or theme, with eBay's Listing Designer.

  • You can also use third-party auction templates listing-creation programs and websites to create template-based item listings.

  • eBay lets you use HTML code to customize the appearance of your item's description.





Absolute Beginner's Guide to eBay
Absolute Beginners Guide to eBay (4th Edition)
ISBN: 078973561X
EAN: 2147483647
Year: 2004
Pages: 204

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net