/    Sign up×
Community /Pin to ProfileBookmark

site validation

i’m having difficulty understanding the errors specified in my site validation check.

examples:

Error Line 318 column 39: element “SCRIPT” undefined.

<SCRIPT LANGUAGE=”JavaScript”>

# Error Line 333 column 39: end tag for “img” omitted, but OMITTAG NO was specified.

alt=”what women want”></div>

You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.

&#9993;

there are too many to list ( 36 in all)

if someone has the time, can they explain how i would correct some of these problems?

[url]http://fatbottoms.atspace.com[/url]
[url]http://bluesrock.atspace.com[/url]

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJan 18.2006 — You've chosen to use XHTML instead of HTML, and XHTML requires that all tags be terminated, even stand-along tags like IMG. Thus you must terminate the IMG tag with a "/>", e.g.:
<i>
</i>&lt;img src="foo.bar" alt="" /&gt;

Also, all element and attribute names must now be lower-case. Also, you may need to wrap your script content in CDATA delimiters:
<i>
</i>&lt;script type="text/javascript"&gt;
&lt;![CDATA[
... unescaped script content ...
]]&gt;
&lt;/script&gt;

Or, you could just use the HTML 4.01 Strict DTD and not worry about it. ?
Copy linkTweet thisAlerts:
@fatbottomsauthorJan 18.2006 — i can almost see the light at the end of the tunnel.

i'm down to 3 errors from 37...

can someone tell me how to correct these 4 errors so my page will finally validate...(sob) i thought i'd never see the day...


errors:

Error Line 7 column 73: character data is not allowed here.

...e" content="text/html; charset=iso-8859-1" />

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).

?




Error Line 357 column 62: document type does not allow element "SELECT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.

... NAME="list" SIZE=1 OnChange="location=getSelect(this)">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

?



Error Line 370 column 6: end tag for "FORM" which is not finished.

</FORM>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.


validating page: http://fatbottoms.atspace.com
Copy linkTweet thisAlerts:
@NogDogJan 18.2006 — i can almost see the light at the end of the tunnel.

i'm down to 3 errors from 37...

can someone tell me how to correct these 4 errors so my page will finally validate...(sob) i thought i'd never see the day...


errors:

Error Line 7 column 73: character data is not allowed here.

...e" content="text/html; charset=iso-8859-1" />

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).

?[/quote]

Try removing the "/" just before the closing ">" (since you're HTML now and not XHTML).


Error Line 357 column 62: document type does not allow element "SELECT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.

... NAME="list" SIZE=1 OnChange="location=getSelect(this)">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

?[/quote]

Pretty much what it says. Form elements are not to be direct children of the <form> element; you need to wrap them in a DIV, P or one of the other tags listed in the error description

Error Line 370 column 6: end tag for "FORM" which is not finished.

</FORM>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
[/QUOTE]

I'm guessing this will be fixed by the above fix.
Copy linkTweet thisAlerts:
@fatbottomsauthorJan 19.2006 — 2 and counting...

i tried wrapping it in a div, but it doesn't seem to work.

is this what you meant nogdog?



<div class="dropdown">

<script type="text/javascript">

function getSelect(s) {

return s.options[s.selectedIndex].value

}

</script>

<div>

< form action="">

<SELECT NAME="list" SIZE=1 OnChange="location=getSelect(this)">

<OPTION value="#">Storyline (themed listing)

<OPTION value="http://fatbottoms.atspace.com/fb092.html"> "Forbidden Fruit"

<OPTION value="http://fatbottoms.atspace.com/fb081.html"> "Free-falling"

<OPTION value="http://fatbottoms.atspace.com/fb070.html"> "Brave New World"

<OPTION value="http://fatbottoms.atspace.com/fb059.html"> "Poney Island"

<OPTION value="http://fatbottoms.atspace.com/fb040.html"> "Mating Game"

<OPTION value="http://fatbottoms.atspace.com/fb033.html"> "FatBottom's"

<OPTION value="http://fatbottoms.atspace.com/fb020.html"> "Unsinkable Molly Brown"

<OPTION value="http://fatbottoms.atspace.com/fb011.html"> "Head Shrinker"

<OPTION value="http://fatbottoms.atspace.com/fb001.html"> "Meow"

</SELECT>

</form>

</div>


also, on my another page i'm trying to validate, i get this:


Error Line 380 column 6: end tag for "DIV" omitted, but its declaration does not permit this.

</body>

You forgot to close a tag, or

you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

?

Info Line 197 column 0: start tag was here.

<div id="container">


any ideas where i went wrong on this one?

validation page- http://bluesrock.atspace.com
Copy linkTweet thisAlerts:
@NogDogJan 19.2006 — Put the DIV inside of the FORM:
<i>
</i>&lt;form&gt;
&lt;div&gt;
&lt;!-- form elements here --&gt;
&lt;/div&gt;
&lt;/form&gt;
×

Success!

Help @fatbottoms spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...