Nerd or Turd Header
RSS

 

Posts Tagged ‘w3c’

End Tag “br” – W3C HTML Validation Error [SOLVED]

13 Mar
Share Button

If you try to validate your code to the HTML 4 W3C standard and the following validation error message is displayed then follow these steps on how to resolve this issue.

The Line number will be different for your coded project and will tell you exactly where the problem in the code is located.

Line 521: End tag “br”.

If you have the tag e.g:

</br>

You will need to change this to the following:

<br>

This will have resolved that error message. Repeat this for all other occurrences.

Please note: In XHTML the following line break codes can both be used:

<br /> and <br>

In HTML5 and XHTML both of the line breaks above can be used but <br> is preferred.

Share Button
 

Bad value for attribute “href” on element “a”: Illegal character in query: space is not allowed. [SOLVED]

12 Mar
Share Button

If you have received the following W3C validation error then this will help you solve the issue.

Line 290: Bad value for attribute “href” on element “a”: Illegal character in query: space is not allowed.

onclick=”javascript:window.open(this.href, ”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600’);return false;”>

Remove the 2 spaces in the code:

this.href, ”, ‘menubar=no,toolbar

The code should now read:

this.href,”,’menubar=no,toolbar

The issue will now be resolved.

 

Share Button
 

How to solve the “apple-touch-icon-precomosed” W3C Validation Error [SOLVED]

12 Mar
Share Button

How to solve the “apple-touch-icon-precomosed” W3c Validation Error message.

If your code reads like the following then it will need to be changed to the code further below.

<link rel=”apple-touch-icon-precomosed” sizes=”57×57″ href=”http://www.website.com/favicons/apple-touch-icon-57×57.png” />

Change the above code to the following (Removing “-precomosed”:

<link rel=”apple-touch-icon” sizes=”57×57″ href=”http://www.website.com/favicons/apple-touch-icon-57×57.png” />

Now this error message will have been resolved and repeat this change for any other occurences in your code.

Share Button