Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I dont understandvalidation errors

Featured Replies

I get error messages from validators but I cant make head or tail of them.

 

 

 

Am I right saying that a different doctype would remove most these errors .

 

What do I have to do to get this site valid.

 

Thanks for your help

post the link here so we can see it, as no just changing the doctype might not help at all, it all depends on what the errors are :)

  • Author
post the link here so we can see it, as no just changing the doctype might not help at all, it all depends on what the errors are :)

 

 

Thanks for the lightning response. The site is www.efficient-heat.net.

Nearly all of the errors are because you haven't closed the self closing tags.

For example,

<meta name="copyright" content="Copyright 2008 Efficient Heat">

would become this:

<meta name="copyright" content="Copyright 2008 Efficient Heat" />

Just add a space and a slash before the end of the tag.

Any tags such as <img>, <meta>, <link>, <br> all need a space and a slash added.

You have two <html> tags. Remove the second one.

You've ended your <head> tag prematurely as well.

Put </head> just before the <body> tag.

That should remove a lot of the errors. :)

Take out the second <html> at the top of the page.

 

On all <meta>, <img> and <br> tags you need to add the closing slash.

 

Eg, you have: <meta randomcrap> it should be <meta randomcrap />

 

In the header you have an <a> tag without the href. should be <a href="/"> rather than <a>.

 

Remove the <b/> near the bottom.

  • Author
Nearly all of the errors are because you haven't closed the self closing tags.

For example,

<meta name="copyright" content="Copyright 2008 Efficient Heat">

would become this:

<meta name="copyright" content="Copyright 2008 Efficient Heat" />

Just add a space and a slash before the end of the tag.

Any tags such as <img>, <meta>, <link>, <br> all need a space and a slash added.

You have two <html> tags. Remove the second one.

You've ended your <head> tag prematurely as well.

Put </head> just before the <body> tag.

That should remove a lot of the errors. :)

 

 

Thanks Elan this took out a chunck of errors. Your posts I've found to be very clear and offer guidelines that help keep me on track.

 

Might be worth mentioning that the html validator addon for ff was giving me less errors than the online W3C validator but when I cleared all the errors that the addon was giving me and then went to validate with W3C it also gave me the green light. I use the sgml parser in the addon, maybe that has something to do with it.

 

As jamset recommended I also had to remove the stray <b> tag near the bottom of the page. Besides causing validation problems it was causing mayhem in firebug. It was showing that tag throughout the code which was confusing me no end.

 

Very happy with this forum :D

<meta randomcrap />

 

Wow, I have never used a randomcrap tag before, must try it on my next site. Tee Hee! :D

 

Glad you like the forum kam, lots of friendly, helpful people in here!

Thanks Elan this took out a chunck of errors. Your posts I've found to be very clear and offer guidelines that help keep me on track.

 

Might be worth mentioning that the html validator addon for ff was giving me less errors than the online W3C validator but when I cleared all the errors that the addon was giving me and then went to validate with W3C it also gave me the green light. I use the sgml parser in the addon, maybe that has something to do with it.

 

As jamset recommended I also had to remove the stray <b> tag near the bottom of the page. Besides causing validation problems it was causing mayhem in firebug. It was showing that tag throughout the code which was confusing me no end.

 

Very happy with this forum :D

The FF Validator and W3C Validator do pick up on different things. Always best to check both but they do pick up on each others flaws.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.