Site validation help
-
Well, I can make changes in my php-files and stylesheet, but only by trial and error. I suppose that this is the reason that a site validation results in numerous mistakes. The report quickly proves that I don’t understand much of it all. Just a few examples.
Line 25, Column 62: required attribute “alt” not specified.
…src=”https://www.xxx.nl/header.jpg” align=”right” />?
The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.Typical values for type are type=”text/css” for <style> and type=”text/javascript” for <script>.
This is what is looks like in the source:
<img src="https://www.xxx.nl/header.jpg" align="right" />
And in the header.php like this:
<img src="https://www.xxx.nl/header.jpg" align="right" />
Does the notification mean that I should start using “alt” tags (I think not). The code looks fine to me.
What about the second one:
Line 37, Column 1: character data is not allowed here.
|
<li><a href="https://www.xxx.nl/articles">articles</a></li>
?
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as “%” and “/” are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta … />) in HTML 4.01 or earlier. To fix, remove the extra slash (‘/’) character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTMLThis is a link that my “blogroll” puts in my header.php. Other than that I don’t see anything wrong, I wouldn’t know where to change anything, since (as you probably know) the header.php simply calls for
<?php wp_list_bookmarks('title_li=&categorize=0') ?>
.What about this one:
“There is no attribute to “action” “
<FORM method=GET action=”https://www.google.com/search”>
The first “s are made red.
This is a Google search form that I put into a text widget. It works just fine, but this “no attribute” error I get more of. Again, the code looks fine to me. Also at the end there is an error, I guess I have to use “/>” instead of “>”? That’s an error I have a lot of that I DO understand ??
(Btw, I see that the Google form is one big error according to w3.org.)Just a few examples that will hopefully make me be able to read these validation reports and solve the problems.
Thank you in advance.
(Oh, I’ve xxx-ed my domain to ‘trick Google’, no need for these forums to turn up when somebody is looking for my website.)
- The topic ‘Site validation help’ is closed to new replies.