HTML Source, Tables, CSS, JavaScript, and Embed/Object.

Moderators: BobCP, agsone, Neil Parks, gregtutor, Lem3


Postby charlotteda on Fri Dec 14, 2012 8:27 pm

Greg, I added the "en" part to my html and I used the direct url to my is still a validation nightmare.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
<html lang="en"><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Carolina Honeybees Online Store</title>

Validation does NOT like so many of the attributes that I am using..some are in the paypal button code so they will just have to live with that...LOL
Posts: 212
Joined: Wed Aug 15, 2007 8:29 pm

Re: validation

Postby gregtutor on Sat Dec 15, 2012 12:03 am

I still don't have the answer to the character encoding warning you originally asked me about, but scanning through the rest I see it all all appears to be exactly the same problem I had when I said I had discovered non-validating code in my own site.

In my case it wasn't Paypal buttons, but Atmoz search code. Both use <form> tags.

If you look up those sites I pointed you at:
you'll see that under a STRICT doctype <form> tags cannot contain "inline" elements.

Your code, like mine, stuffs the <form> tags with inline <input> tags!

To cure the problem wrap the <input> and <img> tags with <div> tags like this:
Code: Select all
Greg Chapman
Helping new users of KompoZer - but using BlueGriffon
Posts: 3784
Joined: Wed Jun 20, 2007 8:25 am
Location: The Norfolk Broads, UK
Country: England (en)

Return to Advanced Design Q & A

Who is online

Users browsing this forum: No registered users and 1 guest