Erns Eporium

HTML codes for Ebay

HTML is a markup language used for creating complete web pages for web sites however with ebay on-line auctions the HTML is used to create part of a web page which will only be active for a few days. Most HTML tags come in pairs, a start tag and an end tag, with the content placed between them.
There are many HTML tags that may be used in many different ways, here are some which are useful for ebay purposes with examples of what can be done.

HTML coding for text

<p> </p> Denotes the beginning and ending of a paragraph. In ebay listings these are used for long passages of text.

<font> </font> These are used to give text style. For ebay auctions the most common uses are for colour, font type and size. Note that the font face will only display if the end user has the font on their PC.

The font may be given a style or face. There are many font types available however the font type does need to be installed on a PC for it to display. There are only a few font types that are common to most PC's and these are;

Information: The font tag is an older type of HTML code which is gradually going out of general use but is still popular for Ebay template designs.

  • Arial
  • Comic Sans MS
  • Courier

Example of coding;
<font color="#ff1493" face="Comic Sans MS" size="5"> </font>

<br /> or <br> This is the line break, used in text to start a new line. Also used for creating vertical spacing between elements in an auction listing.

<font color="#ff1493" face="Comic Sans MS" size="5"> This is an <b> example </b> of using font attributes and span attributes, with the
<span style="background: #deb887; color: #0000ff;"> result below. </span> </font>

This is an example of using font attributes and span attributes, with the result below.

Heading tags

<h1> </h1> through to <h6> </h6>

There are six pair of tags used for headings, these rank in importance from <h1> down to <h6>. The size of the heading text is relative to to main text size, <h1> is the largest decreasing to the smallest <h6>. For auction listing the most useful are <h1> which can be used for the auction listing title, <h2> and <h3> which can be used for sub headings. Attributes or styles codes can be applied to header tags to stylise their appearance. Examples are shown below.

<h1> Auction Title </h1> Auction Title

<h2> Sub Heading </h2> Sub Heading

<h3> Sub Heading </h3> Sub Heading

Coding for images

This is the basic code for embedding an image;
<img src="http://www.yourimagehoster.com/yourimage.jpg" />

The image can be positioned in the page using the following attributes;

A decorative border can be added to an image by using style codes to select colour, size and style. The code for doing this is shown below.

<img src="http://www.yourimagehoster.com/yourimage.jpg"
style="border: #d2691e 6px solid;" />

Kodak Camera

The centre tag

<center> </center> The centre tags are used to centre text or objects horizontally in the auction listing. Although many HTML tags have centre align ability using the centre tags is a quick and effective method for ebay auctions. Any coding placed between the centre tags will then be displayed centred.

Lists

Sometimes it may be necessary to have a list of items, this can done done using HTML list codes. There are two types of lists; unordered, where each item has a bullet point and ordered lists where each item is numbered.

This is an example of an unordered list.

<ul>
<li>
A </li>
<li>
B </li>
<li>
C </li>
</ul>

This is an example of an ordered list.

<ol>
<li>
D </li>
<li>
E </li>
<li>
F </li>
</ol>

  1. D
  2. E
  3. F

Tables

HTML tables are good at producing a structured form. They can be used to produced the layout of an auction listing or for positioning multiple photographs within a listing. Using tables for an ebay auction listing is a simple way of creating a good looking auction.

Attributes can be used to give the table structure. These are applied to the start tag, <table>.

Other attributes can be applied to the table tag, <table>, and also the data cell tag, <td>.

Shown below is the coding for a basic table with the result beneath.

A B
C D

The data cells can be made to stretch across multiple cells using colspan , as shown below with the result beneath;

A
C D

The data cells can be made to stretch across multiple rows using rowspan , as shown below with the result beneath;

A B
D
invisible counters
Musical Instruments