The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Validation Error

Hi all,

I have recently begun updating my website to XHTML and I have encountered the following error and I am not sure what I am doing incorrectly. I have read the error comment but am unsure how to get around it. Any advice would be very welcome.

Divs should only be used when there is no semantic html that will do the job in hand and this is rarely the case. Divs are really just generic, non-semantic page divisions to separate the content into logical chunks.

In reality you should never have content sitting in bare divs because there will always be a more suitable html element that will do the job better.

I have validated most of the pages in the DXServices part of my website but I have noticed a few characters do not display properly, namely the apostrophe in words such as wholesaler's. It is displayed as wholesaler�s. Why is that exactly and how do you get around it? Surely you dont have to use &apos or &#39 everytime?

Most likely, you typed the content in Microsoft Word, or a similar program. Simply open the file in notepad, hit Ctrl+H (replace), copy one of the non-displaying apostrophes and replace it by typing an apostrophe in the "Replace with" field.