Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

errors in html


  • Please log in to reply

#1
jerryl

jerryl

    Member

  • Member
  • PipPip
  • 22 posts
Hi,
A quick question if I may :) I have a wordpress blog http://www.cashblog-n.com and was told it had a lot of errors
you can see here I noticed my site was having problems with IE and I guess this is why?
How did I get the errors?
What's the best way to fix the errors?
How can I not get any errors in the future?
Thanks for your help, this site is a godsend for a technically challenged individual such as myself!
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
The DocType the page is being coded to is XHTML 1.0 Transitional. This is a VERY strict doctype and most of your errors are being generated by its use. If you don't care about using such a tight doctype, drop back to an HTML 4.01 Transitional one. Then you will have fewer errors being flagged and what errors do show will be easily correctable if you know how to hand code HTML/CSS.

WordPress is a blogger and does not write very good code. Just like FrontPage/Word and Dreamweaver. Visual Editors just do not get it correct according to web standards.

Edited by Major Payne, 10 January 2009 - 06:16 PM.

  • 0

#3
Ryan

Ryan

    Member 4k

  • Member
  • PipPipPipPipPipPipPip
  • 4,867 posts
Most of the time, any validation errors with a site being run off of WordPress are due to the theme. 90% of the time, code using the TinyMCE editor included in WordPress will validate.

I took a quick look at the errors, and being as familiar with WordPress as I am, can guarantee that vast majority of the erros on the site are either due to the theme that is used, or generated code for ads, etc.
  • 0

#4
jerryl

jerryl

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
The main problem I would like to fix is the way the site looks on IE (or does it look ok on someone elses computer?)
Also my computer runs slooow sometimes when managing my blog, although it runs slow at other sites sometimes too.
I've been addressing that also. :) What exactly is the TinyMCE editor? Are there themes that are coded better?
Most wordpress blogs have as many errors?
I'm not very familiar with coding HTML, have done a little, The errors shown look like you just find the highlighted
characters and delete them?
  • 0

#5
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Have to disagree on the coding errors. Change the doctype and you'll have fewer errors. All Visual Editors never write HTML/CSS code as wellas a human hand coding the page. These are just a few reported by HTML Tidy and is a result of bad coding:

Result: 1 error / 38 warnings

line 813 column 64 - Warning: missing </div> before <li>
line 813 column 144 - Warning: inserting implicit <ul>
line 813 column 346 - Warning: missing <li>
line 813 column 144 - Warning: missing </ul> before </div>
line 815 column 236 - Warning: unescaped & or unknown entity "&region"
line 821 column 150 - Warning: <img> element not empty or not closed
line 823 column 160 - Warning: <img> element not empty or not closed
line 825 column 301 - Warning: unescaped & or unknown entity "&IFR"
line 832 column 4 - Warning: missing <li>
line 835 column 1 - Error: discarding unexpected </form>
line 837 column 1 - Warning: <input> element not empty or not closed
line 838 column 1 - Warning: <input> element not empty or not closed
line 839 column 1 - Warning: <input> element not empty or not closed
line 840 column 1 - Warning: <input> element not empty or not closed
line 841 column 1 - Warning: <input> element not empty or not closed
line 842 column 1 - Warning: <input> element not empty or not closed
line 843 column 1 - Warning: <input> element not empty or not closed
line 844 column 1 - Warning: <input> element not empty or not closed
line 845 column 1 - Warning: <input> element not empty or not closed
line 849 column 23 - Warning: <input> element not empty or not closed
line 850 column 24 - Warning: <input> element not empty or not closed
line 853 column 36 - Warning: <input> element not empty or not closed
line 870 column 1 - Warning: <input> element not empty or not closed
line 871 column 1 - Warning: <input> element not empty or not closed
line 873 column 1 - Warning: <input> element not empty or not closed
line 874 column 1 - Warning: <img> element not empty or not closed
line 1049 column 141 - Warning: unescaped & or unknown entity "&o"
line 1049 column 145 - Warning: unescaped & or unknown entity "&p"
line 1049 column 150 - Warning: unescaped & or unknown entity "&l"
line 1049 column 155 - Warning: unescaped & or unknown entity "&f"
line 1049 column 161 - Warning: unescaped & or unknown entity "&f"
line 1059 column 88 - Warning: unescaped & or unknown entity "&tag"
line 1070 column 224 - Warning: <img> element not empty or not closed
line 825 column 198 - Warning: <iframe> attribute "width" has invalid value "160px"
line 825 column 198 - Warning: <iframe> attribute "height" has invalid value "600px"
line 825 column 198 - Warning: <iframe> proprietary attribute "onload"
line 836 column 92 - Warning: <form> attribute "target" has invalid value "_new"
line 873 column 1 - Warning: <input> proprietary attribute "border"
line 1049 column 84 - Warning: <iframe> proprietary attribute "border"
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like HTML Proprietary
Some of this may be due to the Blog Editor not knowing how to do what you want it to do, but many are flagged because of not coding to an XHTML 1.0 DocType. If you get the code corrected to the XHTML DocType shown, it will have a better chance of showing correctly in all browsers.

Edited by Major Payne, 02 January 2009 - 04:07 PM.

  • 0

#6
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts

The main problem I would like to fix is the way the site looks on IE (or does it look ok on someone elses computer?)
Also my computer runs slooow sometimes when managing my blog, although it runs slow at other sites sometimes too.
I've been addressing that also. :) What exactly is the TinyMCE editor? Are there themes that are coded better?
Most wordpress blogs have as many errors?
I'm not very familiar with coding HTML, have done a little, The errors shown look like you just find the highlighted
characters and delete them?

Haven't checked the page in my other browsers, but you can use the free online site that will check it in just about every browser ever made and used on different operating systems: Browser Check Site


Correcting a lot of errors is NOT deleting, but fixing the individual code. A higher mis-code can escalate other errors down the page. Once fix, many errors disappear and no longer flagged. If I get time, I can correct those if you know how to copy/paste the corrected page back up.

Edited by Major Payne, 02 January 2009 - 04:13 PM.

  • 0

#7
jerryl

jerryl

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
I do know how to copy and paste lol.
The TinyMCE editor is the HTML editor in your dashboard?
Are you saying I should create my posts in that window?
I would really like to learn how to correct the code and things I need to be somewhat self sufficient in these things.
Just when I learn how to get things done online something else comes up and I'm left wondering what's going on again.
I guess I've come a long way from not knowing how to send an email a few months ago.
On the page of errors I linked to above does the highlighted elements of code just need to be removed to repair it?
I know this is going to be a dumb question but where do you find your pages with the numbered lines and columns?
I can catch on to things fairly quickly once I get some experience with them.
Thanks Ron for all your help.
  • 0

#8
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts

Just when I learn how to get things done online something else comes up and I'm left wondering what's going on again. On the page of errors I linked to above does the highlighted elements of code just need to be removed to repair it?
I know this is going to be a dumb question but where do you find your pages with the numbered lines and columns?

The highlighted elements are corrected to what is says. If its an error which is cause by something that can be deleted, then yes to question. But, some errors are because of missing closing tags or because the code does not meet the document type given and therefore these are flagged as errors. The numbers would only appear in an HTML editor that provides them. They are used only as reference for the source code shown below on the validation page that was used to validate.
  • 0

#9
jerryl

jerryl

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
So in order to repair you really must know how to write HTML code?
Would be difficult for novice?
Could you give me URL of recommended HTML editor?
Will HTML Tidy fix or just show errors?
  • 0

#10
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
HTML Tidy will fix errors, but it doesn't always to your satisfaction and may change your page layout. That's why it's better to know HTML/CSS so you get your page the way you want it. Even a blog.

Some Visual Editors are Kompozer or NVU. Both free. A simple HTML editor that does HTML/CSS/PHP is Matrix Y2k also free. There are a lot more free HTML editors. Just Google.

Edited by Major Payne, 02 January 2009 - 11:37 PM.

  • 0

#11
jerryl

jerryl

    Member

  • Topic Starter
  • Member
  • PipPip
  • 22 posts
Thanks for your help, you're certainly not a Major Payne to me! lol
  • 0

#12
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
You're welcome. Need help on getting those errors corrected just "yell".
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP